07.08.2010, 14:14
First of all, I'm assuming you want the timer for a certain player only,
not global :
and second, please read this :
SetTimer : https://sampwiki.blast.hk/wiki/SetTimer
SetTimerEx : https://sampwiki.blast.hk/wiki/SetTimerEx
Remember! : 1000 = 1 second.
not global :
pawn Код:
SetTimerEx("Payday", 60000, true, "i", playerid);
forward Payday(playerid);
public Payday(playerid)
{
GivePlayerMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_RED, "..:Payday:..");
SendClientMessage(playerid, COLOR_WHITE, "You have recieved $1000 in to your bank"
SendClientMessage(playerid, COLOR_RED, "Spend it wisley!");
return 1;
}
SetTimer : https://sampwiki.blast.hk/wiki/SetTimer
SetTimerEx : https://sampwiki.blast.hk/wiki/SetTimerEx
Remember! : 1000 = 1 second.