முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

ResetPlayerWeapons

Description​

Removes all weapons from a player.

NameDescription
playeridThe ID of the player whose weapons to remove.

Returns​

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, WEAPON:reason)
{
// Remove the killer's weapons
ResetPlayerWeapons(killerid);
return 1;
}

Notes​

உதவிக்குறிப்பு

To remove individual weapons from a player, set their ammo to 0 using SetPlayerAmmo.