05.08.2010, 19:31
This might help:
Alternately You can set a minimum random amount:
note that in the second one you need to make sure that they HAVE the minimum otherwise it will freeze your server.
Код:
new amount=random(GetPlayerMoney(target))+1; //+1 otherwise the ransom will be 0 GivePlayerMoney(target,-amount); GivePlayerMoney(playerid,amount);
Код:
new amount; while(amount<1000)amount=random(GetPlayerMoney(target))+1; GivePlayerMoney......