Pay Day Timer....
#5

Quote:
Originally Posted by austin070
Посмотреть сообщение
Put this somewhere
pawn Код:
forward Payday(playerid);
public Payday(playerid)
{
     //what do you want the timer to do?
     return 1;
}
pawn Код:
public OnGameModeInit(...)
{
     for(new i = 0; i<MAX_PLAYERS; i++)
     {
          SetTimerEx("PayDay", seconds x 1000, 1, "i",i);
     }
     return 1;
}
Wrong

OnGameModeInit is called when a gamemode starts.

-

Correction, for a global payday.

pawn Код:
public OnGameModeInit(...)
{
     SetTimer("PayDay",Time,true);
     return 1;
}
Reply


Messages In This Thread
Pay Day Timer.... - by ricardo178 - 26.03.2011, 23:09
Re: Pay Day Timer.... - by austin070 - 26.03.2011, 23:52
Re: Pay Day Timer.... - by antonio112 - 27.03.2011, 00:09
Respuesta: Pay Day Timer.... - by martini002 - 27.03.2011, 00:13
Re: Pay Day Timer.... - by Elorreli - 27.03.2011, 00:20

Forum Jump:


Users browsing this thread: 7 Guest(s)