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.

Demo kick script?

Modding questions, answers, help.....

Moderators: Warfare, Admin, Moderator

Post Reply
User avatar
TMG Leader
Veteran Light
Veteran Light
Posts: 962
Joined: Mon Jun 25, 2007 10:31 am
Location: In my refrigerator....

Demo kick script?

Post by TMG Leader »

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.
User avatar
LGM
Site Admin
Site Admin
Posts: 2100
Joined: Fri Dec 29, 2006 12:59 pm
Location: Very Northwest WA
Contact:

Re: Demo kick script?

Post by LGM »

Code: Select all

if(%client.namebase.strstr("DEMO"))

                                         %client.player.delete("DemoBGone Script 1.1 kicked you. Do not come back.");

                                        }
I found this in the PTT archives... no idea if the formatting is correct or what. Pretty sure it isn't.
User avatar
TMG Leader
Veteran Light
Veteran Light
Posts: 962
Joined: Mon Jun 25, 2007 10:31 am
Location: In my refrigerator....

Re: Demo kick script?

Post by TMG Leader »

Thanks, that's what I was looking for.

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();
}
};
Do I need to rewrite the whole GameConnection function or what?
First to fall, last man standing.
_Anonymous_
New Brainjar
New Brainjar
Posts: 23
Joined: Fri Apr 24, 2009 8:46 pm

Re: Demo kick script?

Post by _Anonymous_ »

Couldn't you also just add them to your banlist:

Under banlist:
DEMO
If at first you don't succeed, failure may be your style.
- Quentin Crisp
User avatar
Metal
Need Major Repair
Need Major Repair
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm

Re: Demo kick script?

Post by Metal »

No you there's a script... by DJ Wings... you can't just put DEMO under banlist anonymous
DJ Wings
Need Major Repair
Need Major Repair
Posts: 895
Joined: Thu Dec 28, 2006 9:01 am
Location: Places... Places.

Re: Demo kick script?

Post by DJ Wings »

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. :tankerwinks:
Still, TMG's script is the best answer so far.
Never really gone, never really part of the game.
User avatar
Ice mom KT
Need Major Repair
Need Major Repair
Posts: 768
Joined: Thu Mar 19, 2009 5:32 pm
Location: Bay Area - California
Contact:

Re: Demo kick script?

Post by Ice mom KT »

this is very useful for my new scrum sever but... where do i add it :below: 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();
}
};
Image
User avatar
Metal
Need Major Repair
Need Major Repair
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm

Re: Demo kick script?

Post by Metal »

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
User avatar
TMG Leader
Veteran Light
Veteran Light
Posts: 962
Joined: Mon Jun 25, 2007 10:31 am
Location: In my refrigerator....

Re: Demo kick script?

Post by TMG Leader »

^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.
User avatar
Metal
Need Major Repair
Need Major Repair
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm

Re: Demo kick script?

Post by Metal »

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...
Post Reply