Raised This Month: $165 Target: $400
 41% 

Subplugin Submission [ZP] Extra Item : Immunity


Post New Thread Reply   
 
Thread Tools Display Modes
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)

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.
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_immunity_v3.0.sma - 3011 views - 5.5 KB)
File Type: sma Get Plugin or Get Source (zp_extra_immunity_v3.1.sma - 4539 views - 5.6 KB)
File Type: txt zp_extra_immunity.txt (2.4 KB, 3204 views)
__________________

Last edited by Javivi; 09-16-2012 at 08:11.
Javivi is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-05-2009 , 16:56   Re: [ZP] Extra Item : Immunity
Reply With Quote #2

The only difference between the plugins is that yours has a glowing aura, and it resets the immunity when the player spawns. That's pretty much it.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 10-05-2009 , 17:00   Re: [ZP] Extra Item : Immunity
Reply With Quote #3

No.

The old plugin used fakemeta, this no.
The old plugin timer is buggy, this no.
The old plugin countdown have 3 conditions, this only 1.
The old plugin don't remove the countdown when the round start, this yes.


I have the approve of sunx (original plugin developer) and he don't have any problem .


Bye!
__________________
Javivi is offline
Kiske
Veteran Member
Join Date: May 2009
Old 10-05-2009 , 20:48   Re: [ZP] Extra Item : Immunity
Reply With Quote #4

[EN]
You could make a CVAR for if we want the immunity will last you the entire round.

Because if I set the time of Immunity in 10000, the message tells me I keda 10,000 but when I finished the round kick.

However, if the CVAR is to 1, takes you all the Round and the message you would say that lasts all round.


[ES]
Podrias hacer una CVAR de si queres que la Inmunidad te dure toda la Ronda.

Por que si yo pongo el Tiempo de la Inmunidad en 10000, me dice el Mensaje que me keda 10000 aunque cuando termine la Ronda me la saque.

En cambio, si la CVAR esta en 1, te dura toda la Ronda y el Mensaje diria que te dura toda la ronda.

__________________

Kiske is offline
Send a message via Skype™ to Kiske
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 10-05-2009 , 23:26   Re: [ZP] Extra Item : Immunity
Reply With Quote #5

PHP Code:
client_print(idprint_center, ("Immunity time expired")) 
== >>

PHP Code:
client_print(idprint_center"Immunity time expired"
The "(" and ")" are unnecessary

Equally Good Job!
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 10-06-2009 , 02:06   Re: [ZP] Extra Item : Immunity
Reply With Quote #6

jep this one is much better than my & 93s original version

edit: n1
__________________


Last edited by sunx; 10-06-2009 at 23:19.
sunx is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 10-06-2009 , 04:09   Re: [ZP] Extra Item : Immunity
Reply With Quote #7

Good Job Dude;)
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Fraancooo-.
BANNED
Join Date: Aug 2009
Location: CLICK HERE
Old 10-06-2009 , 06:09   Re: [ZP] Extra Item : Immunity
Reply With Quote #8

Good Job Dude;)
Fraancooo-. is offline
Send a message via MSN to Fraancooo-.
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 10-06-2009 , 06:17   Re: [ZP] Extra Item : Immunity
Reply With Quote #9

lol

copy & paste?XD
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 10-06-2009 , 08:51   Re: [ZP] Extra Item : Immunity
Reply With Quote #10

Edit:

Added kiske suggestion
__________________

Last edited by Javivi; 10-06-2009 at 10:12.
Javivi is offline
Reply


Thread Tools
Display Modes

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 13:26.


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