timer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: timer (
/showthread.php?tid=112195)
timer -
sggassasin - 06.12.2009
hey there could someone help me i need to do the following
after 2 mins (for test so could someone also write up for 2 days)
(this happens)
ifplayerenterhf[playerid] = 0;
Re: timer -
Streetplaya - 06.12.2009
pawn Код:
forward Resetter();
public OnFilterScriptInit()
{
SetTimer("Resetter", 120000 /*2 minutes*/, 0);
return 1;
}
public Resetter()
{
for (new i=0; i<MAX_PLAYERS; ++i)
{
if (IsPlayerConnected(i))
ifplayerenterhf[playerid] = 0;
}
}