AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Auto-Kick. (https://forums.alliedmods.net/showthread.php?t=51303)

Daikaz 02-15-2007 13:59

Auto-Kick.
 
I'm new to scripting and I'm trying to make a script that will automatically kick repeat offenders from my server. This is what I have so far...

if(equali(authid,"STEAM_0:1:8373174"))
{
client_cmd(id,"disconnect")
}

Will that work? Any suggestions of making it better etc?

[ --<-@ ] Black Rose 02-15-2007 15:13

Re: Auto-Kick.
 
Yeah, it's a magical thing called "ban".

Daikaz 02-15-2007 15:48

Re: Auto-Kick.
 
Quote:

Originally Posted by [ --<-@ ] Black Rose (Post 440714)
Yeah, it's a magical thing called "ban".

Too bad your post adds nothing but a useless sarcastic comment that I didn't need.

Phantom Warrior 02-15-2007 15:59

Re: Auto-Kick.
 
Wait what the hell?! That won't work!

PHP Code:

 if(equali(authid,"STEAM_0:1:8373174")) 

What the hell? That will only effect the player with that SteamID.

Daikaz 02-15-2007 16:03

Re: Auto-Kick.
 
Quote:

Originally Posted by Phantom Warrior (Post 440750)
Wait what the hell?! That won't work!

PHP Code:

 if(equali(authid,"STEAM_0:1:8373174")) 

What the hell? That will only effect the player with that SteamID.

I know. More ID's can be added.

I just wanted to know if that code would work (because it'll help me learn how to make different codes).

Phantom Warrior 02-15-2007 16:07

Re: Auto-Kick.
 
More ID's you'll have to add millions of ID's.

No that won't work.

[ --<-@ ] Black Rose 02-15-2007 16:29

Re: Auto-Kick.
 
Quote:

Originally Posted by Daikaz (Post 440743)
Too bad your post adds nothing but a useless sarcastic comment that I didn't need.

Thank you.


All times are GMT -4. The time now is 11:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.