26.09.2012, 18:30
i did something like that:
every one minute it will add
checkpdtimer = SetTimer("CheckPayDay", 60000, 1);
every one minute it will add
checkpdtimer = SetTimer("CheckPayDay", 60000, 1);
Код:
forward CheckPayDay(); public CheckPayDay() { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { PlayerInfo[i][pPayDayTime] += 1; if(PlayerInfo[i][pPayDayTime] == 60) { SendClientMessage(i, COLOR_WHITE, "Pay Check test!"); } } } return 1; }