Page 1 of 1

Subplugin Submission [ZP] Extra Item : Immunity

Posted: Tue Nov 23, 2021 12:31 am
by greenie
Description

If you buy this extra item, you can't get infected for X seconds (defined by cvar) or all round and you get a yellow aura .

Tested in zp 4.2 & 4.3 and works fine !


Translation Thread

http://forums.alliedmods.net/showthr...919#post954919


Cvars

PHP Code:
// Immunity duration
zp_immunity_duration "30"

// Aura color [R G B]
zp_immunity_color "255 165 0"

// Aura size
zp_immunity_aura_size "25"
How to enable the item for all round (and vice versa)

1º Open the .sma file

2º Search in the top
PHP Code:
// If you want immunity for all round, uncomment this !
//#define ALLROUND
3º Uncomment it and recompile the plugin !
PHP Code:
// If you want immunity for all round, uncomment this !
#define ALLROUND
How to install
.amxx ---> amxmodx/plugins/
.sma ----> amxmodx/scripting/
.txt -----> amxmodx/data/lang/

Modules
PHP Code:
#include <fun>
#include <hamsandwich>
Available languages
Code:
[en] By Javivi
[es] By Javivi
[nl] By crazyeffect
[sv] By Xellath
[de] By D o o m
[ro] By dorin2oo7/The Wizard
[ru] By NiHiLaNTh
[sk] By i.898.i
[no] By Kujta
[bp] By superang
[pl] By MmikiM
[lt] By hleV
[bg] By hellmoss
Changelog
Code:
v3.1 : Changed bools to bitsums and fixed color chat stock
v3.0 : Code optimized and one bug fixed
v2.3 : Fixed little bug (showing the you are no longer immune msg at player spawn when you have lost the immunity)
v2.2 : Added ML (Thanks crazyeffect!)
v2.1 : Removed useless () and added Kiske suggestion
v2.0 : Public release
v1.9 : Timer bug fix (Thanks IneedHelp)
v1.8 : Optimized code
v1.7 : Added aura & aura cvars (color and size)
v1.5 : Changed print_chat to SyncHud message (cool xD)
v1.4 : Item can't be buy until the round starts (this remove the zombie/nemesis check in the countdown)
v1.3 : Countdown optimized
v1.2 : Removed cost cvar and added a const
v1.1 : Removed fakemeta
v1.0 : Original plugin by sunx ( http://forums.alliedmods.net/showthread.php?t=99854 )
Credits

sunx : original plugin developer
Ineedhelp : report timer bug
Kiske : Aura code
Alucard^ : chat_color
meTaLiCroSS : External Server Cvar
fezh : Help with bitsums
Plugin translators


PS: Dowload & compile yourself, the online compiler don't have the zombieplague include
v2.3 : 350 dl

PS2: I keep the 3.0 version if someone want see how it works because in 3.1 I use bitsums and its more difficult understand it.

Enjoy !!

Javivi.

plugin