Auto-Kick help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Auto-Kick help (
/showthread.php?tid=171167)
Auto-Kick help -
Sascha - 25.08.2010
Hi..
I wanted to kick a player if the server finds the tag on his name...
I tried this:
Код:
new const Admins[][] = {
"[TAG]Name1",
"[TAG]Name2",
"[TAG]Name3",
"[TAG]Name4"
};
if(strfind(name, "[TAG]", true) != -1){
for(new i=0; i< sizeof Admins; i++){
if(!strcmp(name, Admins[i], true)){
}else{
Kick(playerid);
}
}
}
but it also kicks me if I join with 1 of the admin names...
Re: Auto-Kick help -
Sascha - 25.08.2010
na I can't
.. I placed that at "OnPlayerConnect" and the login comes later hehe...so I can't get if the player is admin at that point
ty
Re: Auto-Kick help -
Sascha - 25.08.2010
tried now... and nop it doesn't work