Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item : Immunity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 10-05-2009 , 16:13   [ZP] Extra Item : Immunity
Reply With Quote #1

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)

Open the .sma file

Search in the top
PHP Code:
// If you want immunity for all round, uncomment this !
//#define ALLROUND 
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.
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_immunity_v3.0.sma - 4033 views - 5.5 KB)
File Type: sma Get Plugin or Get Source (zp_extra_immunity_v3.1.sma - 5802 views - 5.6 KB)
File Type: txt zp_extra_immunity.txt (2.4 KB, 3764 views)
__________________

Last edited by Javivi; 09-16-2012 at 08:11.
Javivi is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode