13.01.2012, 10:19
Hello,i maked a small limit to vehicles,players must wait 5 seconds each before entering in a vehicle:
OnPlayerStateChange
But dont work,what's wrong?
OnPlayerStateChange
pawn Код:
if(GetPVarInt(playerid,"VWTIMER")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"You must wait 5 seconds before entering in a vehicle again.");
SetPVarInt(playerid,"VWTIMER",GetTickCount()+5000);
RemovePlayerFromVehicle(playerid);