22.04.2014, 17:34
Код:
if(GameHour == 23 && GameMinute == 59) { for(new i = 0; i < GetMaxPlayers(); i++) { for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) { if(IsPlayerConnected(i) && spawned[playerid] == 1) { pInfo[i][pDaysAlive] ++; if(pInfo[i][pDaysAlive] == 365) { pInfo[playerid][pBirthdays] ++; new pmoney, randcash; pmoney = GetPlayerMoney(i); randcash = random(pmoney); GivePlayerMoney(playerid, randcash); SCM(playerid,COLOR_RED,"BIRTHDAY TEST"); } } } } }