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;
}
|
Seems to work pretty well, the only issue now is the "%d/ 3 warnings"
It doesn't display anything.
Thanks a ton though for trying to help me. rep+!