Timers Help!
#1

I want to make a timer wich it gives money each 600 seconds...
How can I make this timer?
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    SetTimerEx("givecash", 600000, "d", playerid);
    return 1;
}

forward givecash(playerid);
public givecash(playerid)
{
    GivePlayerMoney(playerid, /*Money*/);
    return 1;
}
Reply
#3

pawn Код:
SetTimerEx("GiveCash",600000,0,"ii",playerid,money);
EDIT: [HiC]TheKiller fast than me >_<'
Reply
#4

First you must create the timer, then you set it to 600 seconds, and repeating.
Then once it reaches 600 seconds, give people money with GivePlayerMoney(id, money);

Regards
Max_Coldheart

Quote:
Originally Posted by SA:MP
This forum requires that you wait 120 seconds between posts. Please try again in 59 seconds.
Reply
#5

Thank you TheKiller!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)