04.04.2012, 09:19
Hello, i have my own gamemode, which i started from scratch and i'v created a payday system, it works fine.
but it pays you only 1 hour you play, meaning -> If i logged in at 10:45, i get the paycheck at 11:45. (i'm using a timer of 60000). So what i want is to get paycheck every HOUR, like at 10:00, 11:00, and etc.
Here's the payday! +1 rep for helpers!
but it pays you only 1 hour you play, meaning -> If i logged in at 10:45, i get the paycheck at 11:45. (i'm using a timer of 60000). So what i want is to get paycheck every HOUR, like at 10:00, 11:00, and etc.
Here's the payday! +1 rep for helpers!
Код:
public payday(playerid) { 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; }