SA:MP Function - Something between random and probability?
#2

PHP код:
new bagtype random(5) ? BAG_FOOD BAG_CASH;//according to this code 1/5 chances of getting bag_cash

new cash random(10) ? randomEx100200 ) : randomEx500600 );
//up here cash has 1/10(10 percent) chance of getting cash between 500-600 and 90% chance of cash between 100-200 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)