DAZZLE'S UPGRADE PACK
If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.
If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.
Demo kick script?
Moderators: Warfare, Moderator, Admin
- TMG Leader
- Veteran Light
- Posts: 962
- Joined: Mon Jun 25, 2007 10:31 am
- Location: In my refrigerator....
Demo kick script?
Anyone have one? I'm taking down my TMG Mods server (not officially....yet) in order to put up a stock scrum server for vets. I don't want anyone having to deal with bmers so I was wondering if anyone had the DemoBeGoneScript or anything that kicks demos on connect. Thanks!
First to fall, last man standing.
- LGM
- Site Admin
- Posts: 2100
- Joined: Fri Dec 29, 2006 12:59 pm
- Location: Very Northwest WA
- Contact:
Re: Demo kick script?
Code: Select all
if(%client.namebase.strstr("DEMO"))
%client.player.delete("DemoBGone Script 1.1 kicked you. Do not come back.");
}
- TMG Leader
- Veteran Light
- Posts: 962
- Joined: Mon Jun 25, 2007 10:31 am
- Location: In my refrigerator....
Re: Demo kick script?
Thanks, that's what I was looking for.
EDIT: Could someone give me a hand?
Do I need to rewrite the whole GameConnection function or what?
EDIT: Could someone give me a hand?
Code: Select all
package OnConnectRequestPackage
{
function onConnectRequest()
{
if(%client.namebase.strstr("DEMO"))
{
%client.delete("Sorry, this a veteran's server only. Try a different server. Have a nice day!");
echo(%client.namebase SPC "is a demo, and was kicked from the server.");
}
Parent::onConnectRequest();
}
};
First to fall, last man standing.
-
- New Brainjar
- Posts: 23
- Joined: Fri Apr 24, 2009 8:46 pm
Re: Demo kick script?
Couldn't you also just add them to your banlist:
Under banlist:
DEMO
Under banlist:
DEMO
If at first you don't succeed, failure may be your style.
- Quentin Crisp
- Quentin Crisp
- Metal
- Need Major Repair
- Posts: 1278
- Joined: Fri Dec 26, 2008 5:48 pm
Re: Demo kick script?
No you there's a script... by DJ Wings... you can't just put DEMO under banlist anonymous
-
- Need Major Repair
- Posts: 895
- Joined: Thu Dec 28, 2006 9:01 am
- Location: Places... Places.
Re: Demo kick script?
What's wrong with adding DEMO to the banlist? I mean, sure, if someone has a name like "Demolisher", they'll be kicked, but it's simpler anyways. They can just be a civilian casualty.
Still, TMG's script is the best answer so far.
Still, TMG's script is the best answer so far.
Never really gone, never really part of the game.
- Ice mom KT
- Need Major Repair
- Posts: 768
- Joined: Thu Mar 19, 2009 5:32 pm
- Location: Bay Area - California
- Contact:
Re: Demo kick script?
this is very useful for my new scrum sever but... where do i add it do i add it to my main.cs?
package OnConnectRequestPackage
{
function onConnectRequest()
{
if(%client.namebase.strstr("DEMO"))
{
%client.delete("Sorry, this a veteran's server only. Try a different server. Have a nice day!");
echo(%client.namebase SPC "is a demo, and was kicked from the server.");
}
Parent::onConnectRequest();
}
};
package OnConnectRequestPackage
{
function onConnectRequest()
{
if(%client.namebase.strstr("DEMO"))
{
%client.delete("Sorry, this a veteran's server only. Try a different server. Have a nice day!");
echo(%client.namebase SPC "is a demo, and was kicked from the server.");
}
Parent::onConnectRequest();
}
};
- Metal
- Need Major Repair
- Posts: 1278
- Joined: Fri Dec 26, 2008 5:48 pm
Re: Demo kick script?
I think you make a .cs file and put it to your "game/client/scripts and paste this script to your .cs...
and then you add the "exec" path to your main.cs, Am I right DJ? Probably not... lol
and then you add the "exec" path to your main.cs, Am I right DJ? Probably not... lol
- TMG Leader
- Veteran Light
- Posts: 962
- Joined: Mon Jun 25, 2007 10:31 am
- Location: In my refrigerator....
Re: Demo kick script?
^Meh, kinda close. But before we run the script lets get it working first. The stuff I posted doesn't work. I need some help with it.
First to fall, last man standing.
- Metal
- Need Major Repair
- Posts: 1278
- Joined: Fri Dec 26, 2008 5:48 pm
Re: Demo kick script?
I think theres a script called Anti Demo Script, so we gotta ask DJ about that, no idea though, he said `why not just put DEMO under banlist?` I got no idea, try some stuff, put the DEMO under banlist and try to get a DEMO to join...