How to add custom spawn weapon?
#7

If you mean respawn as in remove their weapons and give them back the normal spawn weapon, then:

OnPlayerDeath:
pawn Код:
ResetPlayerWeapons(playerid); //removes their weapons
GivePlayerWeapon(playerid, 24, 500); // That's where you give them whatever weapon you want
Replace the 24 in the GivePlayerWeapon with the weapon ID of the gun you want. For a full list of gun ID's, visit here:

https://sampwiki.blast.hk/wiki/Weapons

The 500 is the amount of ammo.

For more help with functions, I recommend you visit wiki.sa-mp.com.
Reply


Messages In This Thread
[HELP] How to add custom respawn weapon other than Deagle when we DIED/ GET KILLED - by ramshidjafar - 05.07.2010, 19:36
Re: How to add custom spawn weapon? - by !CryWolf - 05.07.2010, 19:48
Re: How to add custom spawn weapon? - by ramshidjafar - 05.07.2010, 20:06
Re: How to add custom spawn weapon? - by ramshidjafar - 05.07.2010, 21:55
Re: How to add custom spawn weapon? - by [NTX]MikeQ - 05.07.2010, 21:58
Re: How to add custom spawn weapon? - by Karlip - 05.07.2010, 21:58
Re: How to add custom spawn weapon? - by TKZ227 - 05.07.2010, 22:14
Re: How to add custom spawn weapon? - by ramshidjafar - 06.07.2010, 06:53
Re: How to add custom spawn weapon? - by ramshidjafar - 06.07.2010, 06:55
Re: How to add custom spawn weapon? - by dice7 - 06.07.2010, 14:25

Forum Jump:


Users browsing this thread: 2 Guest(s)