19.05.2014, 14:29
Hello i try to make a simple afk system but my onplayerupdate doesn't work i dont know why
this is the public
it is doesn't send the work message i dont know why ...
thanks :]
this is the public
PHP код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
print("[system] Work!");
if(GetPVarInt(playerid, "AFKTime") > 0 && !IsPlayerNPC(playerid)) SetPVarInt(playerid, "AFKTime", 0);
return 1;
}
thanks :]