Payday problem
#1

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!

Код:
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;
}
Reply


Messages In This Thread
Payday problem - by DannySnoopy - 04.04.2012, 09:19
Re: Payday problem - by RenSoprano - 04.04.2012, 09:56
Re: Payday problem - by DannySnoopy - 04.04.2012, 10:13
Re: Payday problem - by aRoach - 04.04.2012, 10:16
Re: Payday problem - by Reklez - 04.04.2012, 10:20
Re: Payday problem - by aRoach - 04.04.2012, 10:23
Re: Payday problem - by DannySnoopy - 04.04.2012, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)