This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item : Godmode


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 12-03-2009 , 18:52   [ZP] Extra Item : Godmode
Reply With Quote #1

[ZP] Extra Item : Godmode
by Ciio

Description :

- When you buy godmode lasts only 15 seconds
- When you buy comprarAl leave a message in chat "You bought Godmode for 15 seconds!"
- When you run out to leave you a message in the chat "
You just the godmode"

Includes :
PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <fun> 
Credits :
Venganza!
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_godmode.sma - 1109 views - 679 Bytes)
__________________
Ciio is offline
Send a message via MSN to Ciio
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-03-2009 , 19:08   Re: [ZP] Extra Item : Godmode
Reply With Quote #2

you keep making zombie palgue items lol nice work tho
__________________
Zombiezzz is offline
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 12-03-2009 , 20:16   Re: [ZP] Extra Item : Godmode
Reply With Quote #3

I do not understand anything of what you say
__________________
Ciio is offline
Send a message via MSN to Ciio
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-03-2009 , 20:31   Re: [ZP] Extra Item : Godmode
Reply With Quote #4

Stop using Google Translator.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-03-2009 , 20:48   Re: [ZP] Extra Item : Godmode
Reply With Quote #5

Quote:
Originally Posted by Ciio View Post
I do not understand anything of what you say
__________________
Zombiezzz is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-03-2009 , 21:34   Re: [ZP] Extra Item : Godmode
Reply With Quote #6

Ok I'm done doing my godmode

Code:
#include <amxmodx>
#include <zombieplague>
#include <fun>

new g_godmode, g_godmode_time, g_godmode_red, g_godmode_green, g_godmode_blue

public plugin_init()
{
	register_plugin("[ZP] Extra Item: Godmode", "1.0", "Ciio") 
	g_godmode = zp_register_extra_item("Godmode", 30, ZP_TEAM_HUMAN)
	g_godmode_time = register_cvar("zp_god_time", "15")
	g_godmode_red = register_cvar("zp_god_red", "6")
	g_godmode_green = register_cvar("zp_god_green", "249")
	g_godmode_blue = register_cvar("zp_god_blue", "249")
}

public zp_extra_item_selected(id, itemid)
{
	if (itemid == g_godmode)
	{
		set_user_godmode (id, 1)
		set_user_rendering(id, kRenderFxGlowShell, get_pcvar_num(g_godmode_red), get_pcvar_num(g_godmode_green), get_pcvar_num(g_godmode_blue), kRenderNormal, 255)
		client_print (id, print_chat, "[ZP] You've bought Godmode for 15 seconds !")
		set_task(get_pcvar_float(g_godmode_time), "remove_god", id)
	}
}

public remove_god(id)
{
	set_user_godmode (id, 0)
	set_user_rendering(id, kRenderFxNone, 0, 0 ,0, kRenderNormal, 255)
	client_print (id, print_chat, "[ZP] Godmode is over.")
}
This will add a cyan glow to users who buy it. I think removing it for zombie is better. Zombie has Zombie Madness that does the same thing.

Last edited by Excalibur.007; 12-03-2009 at 22:45.
Excalibur.007 is offline
f0rlive
Senior Member
Join Date: Sep 2009
Old 12-03-2009 , 23:05   Re: [ZP] Extra Item : Godmode
Reply With Quote #7

some people can it do in 19 lines

XD
f0rlive is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-03-2009 , 23:39   Re: [ZP] Extra Item : Godmode
Reply With Quote #8

I know but some ppl juz download at add so they need to know how to customize the glow so i added cvars otherwise they wouldn't know where to edit the time for god mode and glow.
Excalibur.007 is offline
DarkSkif
Member
Join Date: Oct 2009
Location: Russia
Old 12-04-2009 , 03:01   Re: [ZP] Extra Item : Godmode
Reply With Quote #9

Nice plugin
DarkSkif is offline
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 12-05-2009 , 18:44   Re: [ZP] Extra Item : Godmode
Reply With Quote #10

thats exactly like my or javivis immunity plugin ... and that immunity has more effects .. easy to set_user_godmode ...

http://forums.alliedmods.net/showthr...extra+immunity
__________________


Last edited by sunx; 12-07-2009 at 17:27.
sunx is offline
Reply



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:48.


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