ResetPlayerWeapons
From SA-MP Wiki
(Difference between revisions)
Revision as of 00:20, 19 May 2012 Smithy (Talk | contribs) ← Previous diff |
Revision as of 19:26, 1 February 2014 Connor Mead (Talk | contribs) (add fr link) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|Removes all weapons from a player.}} | {{Description|Removes all weapons from a player.}} | ||
Line 23: | Line 22: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:ResetPlayerWeapons]] | ||
[[ru:ResetPlayerWeapons]] | [[ru:ResetPlayerWeapons]] |
Revision as of 19:26, 1 February 2014
Description:
Removes all weapons from a player.
(playerid)
playerid | The ID of the player to remove the weapons of. |
Return Values:
This function does not return any specific values.
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.
- GivePlayerWeapon: Give a player a weapon.
- GetPlayerWeapon: Check what weapon a player is currently holding.