ResetPlayerWeapons

From SA-MP Wiki

Jump to: navigation, search


Description:

Removes all weapons from a player.


Parameters:
(playerid)
playeridThe 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;
}
Image:32px-Ambox_warning_orange.png

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.

Personal tools
In other languages