Auto-Kick help
#1

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...
Reply
#2

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
Reply
#3

tried now... and nop it doesn't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)