Hey I got an idea have no idea how to do it...
#1

I want to make it so when a player enters a check point there is a 2% chance of them getting a weapon how can this be done?
Reply
#2

Hello!

PHP код:
new random_value random(50); //2%
if(random_value == || random_value == 2)GivePlayerWeapon(playerid,24,500);
//if the random value is 1 or 2 the player get a deagle with 500 ammo.
//you can change the numbers (1,2) in an another value. 
Mencent
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)