ResetPlayerWeapons

ResetPlayerWeapons

Description:
Function ResetPlayerWeapons removes all weapons from a player.
To remove individual weapons from a player, set their ammo to 0 using SetPlayerAmmo.


Parameters:
(playerid)
int playerid The ID of the player whose weapons to remove.


Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute. This means the player specified does not exist.


Examples:
public OnPlayerDeath(playerid, killerid, reason)
{
    // Remove the killer's weapons
    ResetPlayerWeapons(killerid);
    return 1;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.