03.09.2012, 00:11
Its checking whether the player is banned or not, if player is banned then banned= 1
And if not banned=0
for example
And if not banned=0
for example
pawn Код:
if (dUserINT(PlayerName2(playerid)).("banned") == 1){
SendClientMessage(playerid, red, "This name is banned from this server!");
format(string,sizeof(string),"%s ID:%d was auto kicked. Reason: Name banned from server",PlayerName,playerid);
SendClientMessageToAll(grey, string); print(string);
SaveToFile("KickLog",string); Kick(playerid);}