05.07.2010, 22:14
If you mean respawn as in remove their weapons and give them back the normal spawn weapon, then:
OnPlayerDeath:
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.
OnPlayerDeath:
pawn Код:
ResetPlayerWeapons(playerid); //removes their weapons
GivePlayerWeapon(playerid, 24, 500); // That's where you give them whatever weapon you want
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.