Quote:
Originally Posted by Kasichok
PHP код:
//OnPlayerStateChange
new str[15];
warnings[playerid] ++;
format(str, 15, "%d/3 warnings", warnings[playerid]);
if(warnings[playerid] > 2) { SetTimerEx("PKick", 100, false, "d", playerid); Kick(playerid); }
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "Hunter can only be used by VIP players.");
///////////////////////////////////////////////////////////////////////////////////////////
forward PKick(playerid);
public PKick(playerid)
{
Kick(playerid);
return 1;
}
|
If you're adding a timer it's not for nothing, why are you still calling Kick function directly inside the if statement?