GivePlayerWeapon
#1

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

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)