SA-MP Forums Archive
GivePlayerWeapon - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GivePlayerWeapon (/showthread.php?tid=89547)



GivePlayerWeapon - sandisk125 - 02.08.2009

how can i script to when a players spawns, so he spawns with a weapons?, how can i do that?


Re: GivePlayerWeapon - member - 02.08.2009

Look for AddPlayerClass or AddPlayerClassEx in your script and change the weapon parameters for the class and the ammo.
Check the Wiki: https://sampwiki.blast.hk/wiki/AddPlayerClassEx

Or, UnderOnPlayerSpawn at the GivePlayerWeapon function, but that will give all players the same weapons when they spawn (not good if you want different classes to have different weapons).