04.04.2012, 10:13
Quote:
You need to set your timer to
Код:
SetTimer( "Payday", 60000, true ); Код:
public payday(playerid) { new hh, mm, ss; gettime( hh, mm, ss ); if( mm == 0 ) { for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) { GameTextForPlayer(i, "~p~PAY~w~DAY", 1000, 1); GivePlayerCash(playerid, 1000); SetPlayerScore(playerid, GetPlayerScore(playerid) +1); SendClientMessage(playerid, COLOR_GREENYELLOW,"~~~~~~~~~~PayDay~~~~~~~~~~"); SendClientMessage(playerid, COLOR_WHITE,"You have recived a check of 1,000$!"); SendClientMessage(playerid, COLOR_WHITE,"You also got level up!"); SendClientMessage(playerid, COLOR_GREENYELLOW,"~~~~~~~~~~~~~~~~~~~~~~~~~~"); } } return 1; } |