03.08.2010, 13:57
pawn Код:
public OnPlayerSpawn(playerid)
{
SetTimer("PocketMoney", 600000, true);
return 1;
}
forward PocketMoney();
public PocketMoney()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new pMoney, pScore;
GetPlayerMoney(pMoney);
GetPlayerScore(pScore);
GivePlayerMoney(i, pMoney+5000);
SetPlayerScore(i, pScore+1);
}
}