Hey I got an idea have no idea how to do it... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hey I got an idea have no idea how to do it... (
/showthread.php?tid=570584)
Hey I got an idea have no idea how to do it... -
kingcrome - 11.04.2015
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?
AW: Hey I got an idea have no idea how to do it... -
Mencent - 11.04.2015
Hello!
PHP код:
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.
Mencent