Weapon Immunity 0.20
Original plugin requested by The-Jeff
Description
This plugin allows you to set certain players to become immune to specific weapons. Currently, all weapons wieldable by players are supported.
Commands
amx_immune <target> <weapon> [0|1] - Requires ban access to use. See below for a list of targets and weapons. If the third argument isn't specified, it's assumed to be 1 (thus, making the target immune to weapon).
amx_unimmune <target> <weapon> - Requires ban access to use. Exactly the same as using amx_immune with the third argument being 0 (making the target no longer immune to weapon).
amx_weaponlist - Requires ban access to use. Displays a list of all valid weapon names and weapon groups to be used for the second parameter of the immune functions.
Valid Targets
* or
@ALL - everyone
@TERRORIST - all players on the terrorist team
@CT - all players on the counter-terrorist team
@BOT - all bots
@HUMAN - all non-bots
@ADMIN - all admins
@USER - all non-admins
If no groups are specified, it attempts a name match with players in the server.
Valid Weapons
@KNIVES - knife
@PISTOLS - glock18, usp, p228, deagle, fiveseven, elite
@SHOTGUNS - m3, xm1014
@SMGS - tmp, mac10, mp5navy, ump45, p90
@RIFLES - galil, famas, ak47, m4a1, sg552, aug, scout, awp, g3sg1, sg550
@SNIPERS - scout, awp, g3sg1, sg550
@MACHINEGUNS - m249
@GRENADES - flashbang, hegrenade, smokegrenade
If no groups are specified, it will assume that it is an exact weapon name.
Notes
All of the groups require only the first letter to use. For example, you can use @T (or @TE, @TER, etcetera) instead of @TERRORIST. The only exceptions are @ALL: it supports no partial matching at all; and the weapon groups starting with "S" (@SHOTGUNS, @SMGS, and @SNIPERS): they require at least two letters to be identifiable.
Requires Fakemeta and
AMXX 1.76d or later!