18.02.2014, 05:33
pawn Код:
new tick;
public OnPlayerUpdate(playerid)
{
if(GetTickCount() - tick > 1000)
{
tick = GetTickCount();
SendClientMessage(playerid, -1, "1 second passed");
}
return 1;
}
//or
//gamemodeinit
timer = SetTimer("onesec", 1000, true);
forward onesec();
public onesec()
{
SendClientMessageToAll( -1, "1 second passed");
return 1;
}