10.09.2012, 18:50
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]);
//...
}