11.04.2015, 20:52
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?
new random_value = random(50); //2%
if(random_value == 1 || 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.