06.09.2014, 13:05
i am making a system with random prize...but how is it possible to make like,it is harder to earn 100k than 1k,like prizes are :1k,2k,5k,20k,100k,how could i make like 100k is harder to get than others?
new prize_array[] = { 1000,1000,1000,1000,2000,2000,2000,2000,3000,3000,3000,3000,100000};
//now while taking out prize -
new r = randon(sizeof(prize_array));
//now use prize_array[r] as the random prize
new RandomCash[] =
{
100,
100,
100,
150,
150,
1000
};
//then
new Random = random(sizeof(RandomCash));
GivePlayerMoney(playerid, RandomCash[Random]);