random amount
#1

Код:
 
	  if(!strcmp(cmdtext, "/transfercash", true))
    {
    if(PlayerToPoint(5, playerid, 364.5175,173.8485,1008.3893))
    {
    SendClientMessageToAll(ADMIN_RED, "[ ! ] BIP ! BIP ! BIP ! BIP ! Casino alarm launched ");
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] Shit ! alarm is launched, hurry up man ");
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] .... Money transfer in progress .... ");
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] .... Money transfer in progress .... ");
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] .... Money transfer in progress .... ");
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] .... Money transfer in progress .... ");
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] Congratulations ! You got your money ");
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] PCash info : +5000 PCash ");
    GivePlayerPCash(playerid, 5000);
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] Now get the hell out of here, the job is done");
    SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] Perhaps cops will chase you, try to loose them");
    
    
		}
		else
		{
		SendClientMessage(playerid, COLOR_RED, "[ ! ] You are not at the casino safe ");
		}
		return 1;
		}
Now when you type /transfercash, it gives you 5000 PCash, i want to make a random amount of PCash, max : 10000 Pcash & min ; 1000 Pcash

Thanks for reading & helping ^^
Reply


Messages In This Thread
random amount - by Takumi.WS - 30.07.2009, 18:35
Re: random amount - by James_Alex - 30.07.2009, 18:45
Re: random amount - by yezizhu - 30.07.2009, 19:02
Re: random amount - by Takumi.WS - 30.07.2009, 19:04
Re: random amount - by illay - 30.07.2009, 19:13
Re: random amount - by yezizhu - 01.08.2009, 03:15
Re: random amount - by Takumi.WS - 01.08.2009, 03:40
Re: random amount - by yezizhu - 01.08.2009, 04:12
Re: random amount - by Daren_Jacobson - 01.08.2009, 04:40
Re: random amount - by Takumi.WS - 01.08.2009, 05:49

Forum Jump:


Users browsing this thread: 1 Guest(s)