Give money to player every 15 minutes
#2

pawn Код:
MoneyTimer[MAX_PLAYERS];
OnPlayerConnect(playerid)
{
    MoneyTimer[playerid]=SetTimerEx("GiveMoneyPl0x",15*3600,true,"d",playerid);
    //...
}
forward public GiveMoneyPl0x(playerid);
public GiveMoneyPl0x(playerid)
{
    GivePlayerMoney(playerid,5000);
}
public OnPlayerDissconect(playerid,reason)
{
    KillTimer(MoneyTimer[playerid]);
    //...
}
Not that hard . Hope I helped
Reply


Messages In This Thread
Give money to player every 15 minutes - by kbalor - 10.09.2012, 18:43
Re: Give money to player every 15 minutes - by Roko_foko - 10.09.2012, 18:50
Re: Give money to player every 15 minutes - by kbalor - 10.09.2012, 19:15
Re: Give money to player every 15 minutes - by Jack.7331 - 10.09.2012, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)