With getting playercash
#3

Random amount of cash? Something like this?
Код:
stock randomEx(min, max)
{
    new rand = random(max-min)+min;
    return rand;
}


Use: 
for(new i=0; i<MAX_PLAYERS; i++)
{
new amount = randomEx(0, 3000000);
GivePlayerMoney(i, -amount);
GivePlayerMoney(playerwhowillgetmoney, 2*amount); // 2* is because he already lost 'amount' like everybody else, so he needs twice...
}
I hope i understood you and helped you BTW code randomEx is not mine!
Reply


Messages In This Thread
With getting playercash - by AroseKhanNiazi - 22.04.2014, 17:01
Re: With getting playercash - by Dignity - 22.04.2014, 17:06
Re: With getting playercash - by CroM256 - 22.04.2014, 17:08
Re: With getting playercash - by AroseKhanNiazi - 22.04.2014, 17:34
Re: With getting playercash - by Dignity - 22.04.2014, 17:36
Re: With getting playercash - by AroseKhanNiazi - 22.04.2014, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)