So you're probably thinking "
W0oT! Now my Play0rZ n0 can su1c1d0r!! "
And I'll tell you now;
It will.
This simple plugin will either block a player from suiciding or punish him, see cvars.
This wasn't supposed to be my first plugin, but oh whatever.
Commands:
Put amx_cvar in front of the cvars below
Cvars:
Code:
amx_nokill 1 // if 0, lets players suicide without punishment
amx_nokill_block 1 // if 1, the player can't suicide at all - This will disable punish mode (kick, cash and name have no effect)
amx_nokill_kick 0 // if 1, kicks suiciders as soon as they suicide
amx_nokill_warn 1 // warn 3 times, then kick
amx_nokill_cash 1 // if 1, removes all cash on suicide
amx_nokill_name 1 // if 1, chooses an ugly name for the suicider
Players with immunity (
ADMIN_IMMUNITY Flag) are not affected by punishments.