AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Extra Item : Immunity (https://forums.alliedmods.net/showthread.php?t=105537)

Javivi 10-05-2009 16:13

[ZP] Extra Item : Immunity
 
5 Attachment(s)
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 :D.

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.

Xellath 10-05-2009 16:56

Re: [ZP] Extra Item : Immunity
 
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.

Javivi 10-05-2009 17:00

Re: [ZP] Extra Item : Immunity
 
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!

Kiske 10-05-2009 20:48

Re: [ZP] Extra Item : Immunity
 
[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.


lucas_7_94 10-05-2009 23:26

Re: [ZP] Extra Item : Immunity
 
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!

sunx 10-06-2009 02:06

Re: [ZP] Extra Item : Immunity
 
jep this one is much better than my & 93s original version :D

edit: n1 :)

#8 SickneSS 10-06-2009 04:09

Re: [ZP] Extra Item : Immunity
 
Good Job Dude;)

Fraancooo-. 10-06-2009 06:09

Re: [ZP] Extra Item : Immunity
 
Good Job Dude;)

#8 SickneSS 10-06-2009 06:17

Re: [ZP] Extra Item : Immunity
 
lol

copy & paste?XD

Javivi 10-06-2009 08:51

Re: [ZP] Extra Item : Immunity
 
Edit:

Added kiske suggestion


All times are GMT -4. The time now is 08:30.

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