28.11.2010, 03:23
well you can't detect it so easy that way.
pawn Код:
OnPlayerUpdate(playerid) SetPVarInt(playerid,"pause",30)
pawn Код:
public timerfunction(playerid)//run a 1 second timer to call this for each player
{
SetPVarInt(playerid,"pause",GetPVarInt(playerid,"pause")-1);
if(GetPVarInt(playerid,"pause") == 0)
{
printf("30 seconds has passed since %d has paused",playerid);
}
}