Help With getting random cash
#5

i dont know maybe
PHP код:
forward BirthDayPresent(playerid);
public 
BirthDayPresent(playerid)
{
         new 
birth[128]; //string for message
         
new money random(50001); // this will give each player random money from 0 to 50000
         
format (birthsizeof(birth), "Happy Birthday you get %d money",money); //format message
         
GivePlayerMoney(playerid,money);
         
SendClientMessage(playerid,0xADD8E6FF,birth);
    return 
1;
}
COMMAND:givepresents(playerid,params[])
{
    for(new 
0MAX_PLAYERSa++)
    {
    
BirthDayPresent(a);
    }
return 
1;

but I'm pretty sure it would not work so
but try it with someone and give me the result

EDIT:
also added on top of this command if you want to just about RCON admin
PHP код:
     if(!IsPlayerAdmin(playerid)) return 0
Reply


Messages In This Thread
Help With getting random cash - by AroseKhanNiazi - 16.05.2014, 15:53
Re: Help With getting random cash - by AroseKhanNiazi - 17.05.2014, 16:15
Re: Help With getting random cash - by rumen98 - 17.05.2014, 16:31
Re: Help With getting random cash - by AroseKhanNiazi - 17.05.2014, 17:50
Re: Help With getting random cash - by rumen98 - 17.05.2014, 18:03
Re: Help With getting random cash - by AroseKhanNiazi - 17.05.2014, 18:20
Re: Help With getting random cash - by rumen98 - 17.05.2014, 18:26
Re: Help With getting random cash - by AroseKhanNiazi - 17.05.2014, 18:27
Re: Help With getting random cash - by DaniceMcHarley - 17.05.2014, 18:27
Re: Help With getting random cash - by rumen98 - 17.05.2014, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)