SA-MP Forums Archive
Random weapons at spawn... - 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: Random weapons at spawn... (/showthread.php?tid=426035)



Random weapons at spawn... - FalconeX - 27.03.2013

Do anyone know to make a random weapon system when player spawns after death...?


Re: Random weapons at spawn... - FalconeX - 27.03.2013

Anyone?


Re: Random weapons at spawn... - judothijs - 27.03.2013

At the onPlayerSpawn callback, put setPlayerWeapon.
Create a random number, and set the weaponid to that random number. Make a range for the available weapon id's


Re: Random weapons at spawn... - FalconeX - 28.03.2013

Quote:
Originally Posted by judothijs
Посмотреть сообщение
At the onPlayerSpawn callback, put setPlayerWeapon.
Create a random number, and set the weaponid to that random number. Make a range for the available weapon id's
Can you make an example?