Payday problem
#3

Quote:
Originally Posted by RenSoprano
Посмотреть сообщение
You need to set your timer to
Код:
SetTimer( "Payday", 60000, true );
and change your

Код:
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;
}
And If you want I can make to give random money now every time 1000$
ehm.. random cash would be great thanks.
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: 2 Guest(s)