ResetPlayerWeapons
From SA-MP Wiki
Description:
Removes all weapons from a player.
(playerid)
playerid | The ID of the player whose weapons to remove. |
Return Values:
- 1: The function executed successfully.
- 0: The function failed to execute. This means the player specified does not exist.
Example Usage:
public OnPlayerDeath(playerid, killerid, reason) { // Remove the killer's weapons ResetPlayerWeapons(killerid); return 1; }
Note | To remove individual weapons from a player, set their ammo to 0 using SetPlayerAmmo. |
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GivePlayerWeapon: Give a player a weapon.
- GetPlayerWeapon: Check what weapon a player is currently holding.