Raised This Month: $32 Target: $400
 8% 

[ZP] Addon: Show team score v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Ryokin
Senior Member
Join Date: Jan 2010
Old 07-16-2010 , 08:46   Re: [ZP] Addon: Show team score v1.3
Reply With Quote #21

Quote:
Originally Posted by PORKI View Post
there are problems disappear for a while other hud messages left with the bottom, where the rate of reservation life.
i have'nt found a way to make the hud better , so wait
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL
Ryokin is offline
Old 07-16-2010, 08:47
Ryokin
This message has been deleted by Ryokin. Reason: lag
Ryokin
Senior Member
Join Date: Jan 2010
Old 07-16-2010 , 09:39   Re: [ZP] Addon: Show team score v1.3
Reply With Quote #22

well, i found new way to fix hud msg , use v1.4 now
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL

Last edited by Ryokin; 07-16-2010 at 10:03.
Ryokin is offline
Saad706
Member
Join Date: Jun 2010
Location: Karachi,Pakistan
Old 07-17-2010 , 02:42   Re: [ZP] Addon: Show team score v1.4
Reply With Quote #23

NH4OH + HCL -> NH4CL+ H20 I hate balance the equation
__________________
HeLL MoD Project is 50% Completed . Thanks @bdul for Help

My plugin link Advanced fog system
http://forums.alliedmods.net/showthr...t=advanced+fog
Saad706 is offline
Send a message via Skype™ to Saad706
Ryokin
Senior Member
Join Date: Jan 2010
Old 07-17-2010 , 02:59   Re: [ZP] Addon: Show team score v1.4
Reply With Quote #24

it's chemical with acid and ...(unknow in english) lol , may be you learnt at school
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL
Ryokin is offline
tfk94
Veteran Member
Join Date: Jan 2011
Location: [url=http://www.gametrac
Old 02-07-2012 , 19:28   Re: [ZP] Addon: Show team score v1.4
Reply With Quote #25

can u make zombie be in red
humans in blue
and the score below them in green
tfk94 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 02-09-2012 , 03:32   Re: [ZP] Addon: Show team score v1.4
Reply With Quote #26

Quote:
Originally Posted by tfk94 View Post
can u make zombie be in red
humans in blue
and the score below them in green
Stop posting on old threads
__________________
Snaker beatter is offline
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 03-25-2012 , 08:36   Re: [ZP] Addon: Show team score v1.4
Reply With Quote #27

Here is a edited version:

Quote:
#include <amxmodx>
#include <engine>
#include <zombieplague>
#include <dhudmessage>

#define PLUGIN "[ZP] Team win score"
#define VERSION "1.4"
#define AUTHOR "Ryokin [Edit by: MercedeS]"

new g_zombiescore, g_humanscore

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_think("msg","ForwardThink")
register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w")
new iEnt = create_entity("info_target")
entity_set_string(iEnt, EV_SZ_classname, "msg")
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}

public zp_round_ended(team)
{
switch(team)
{
case WIN_ZOMBIES: g_zombiescore ++

case WIN_HUMANS: g_humanscore ++

case WIN_NO_ONE: g_humanscore ++
}
}

public ForwardThink(iEnt)
{
show_hud()
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}

public show_hud()
{
set_dhudmessage(0, 180, 255, -1.0, 0.0, 1, 6.0, 1.0)
show_dhudmessage(0, "[Zombies] - [Humans]^n[%s%d] -- [%s%d]", g_zombiescore >= 10 ? "" : "0",g_zombiescore,g_humanscore >= 10 ? "" : "0", g_humanscore )
}

public RestartRound()
{
g_zombiescore = 0
g_humanscore = 0
}
dhudmessage.inc
__________________

Last edited by MercedeSx7; 03-25-2012 at 08:41.
MercedeSx7 is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 03-25-2012 , 10:28   Re: [ZP] Addon: Show team score v1.4
Reply With Quote #28

dont revive threads.
__________________
jc980 is offline
And1.S
Member
Join Date: Oct 2013
Old 05-02-2015 , 15:37   Re: [ZP] Addon: Show team score v1.4
Reply With Quote #29

hi how can i edit this for BaseBuuilder ??

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

#define PLUGIN "[ZP] Team win score"
#define VERSION "1.3"
#define AUTHOR "Ryokin"

new g_zombiescore, g_humanscore, g_NoOneWin, g_hudcolor,g_hudposition , g_hudmsg

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_think("msg","ForwardThink")
	register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w")
	g_NoOneWin = register_cvar( "zp_winnoone_score", "1")
	g_hudcolor = register_cvar( "zp_teamscore_hudcolor", "255 25 0")
	g_hudposition = register_cvar( "zp_teamscore_hudposition", "-1.0 0.02")
	g_hudmsg = CreateHudSyncObj()
	new iEnt = create_entity("info_target")
	entity_set_string(iEnt, EV_SZ_classname, "msg")
	entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}

public zp_round_ended(team)
{
	switch(team)
	{
		case WIN_ZOMBIES: g_zombiescore ++ 
		
		case WIN_HUMANS: g_humanscore ++ 
		
		case WIN_NO_ONE: 
			if (get_pcvar_num(g_NoOneWin))
				g_humanscore ++
	}
}

public ForwardThink(iEnt)
{
	show_hud()
        entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}

public show_hud()
{
	static hud_red,hud_green,hud_blue, Float:hud_x, Float:hud_y

	hudmsgcolor(hud_red,hud_green,hud_blue)
	hudmsgpos(hud_x,hud_y)

	set_hudmessage(hud_red, hud_green, hud_blue, hud_x, hud_y, _, _, 4.0, _, _, 4)
	ShowSyncHudMsg(0, g_hudmsg, "[Zombie] - [Human]^n[%s%d] -- [%s%d]",g_zombiescore >= 10 ? "" : "0",g_zombiescore,g_humanscore >= 10 ? "" : "0", g_humanscore )
}

public RestartRound()
{
	g_zombiescore = 0
	g_humanscore = 0
}

public hudmsgcolor(&hud_red,&hud_green,&hud_blue)
{
	new color[16], red[4], green[4], blue[4]
	get_pcvar_string(g_hudcolor, color, 15)
	parse(color, red, 3, green, 3, blue, 3)
		
	hud_red = str_to_num(red)
	hud_green = str_to_num(green)
	hud_blue = str_to_num(blue)
}

public hudmsgpos(&Float:hud_x,&Float:hud_y)
{
	new Position[19], PositionX[6], PositionY[6]
	get_pcvar_string(g_hudposition, Position, 18)
	parse(Position, PositionX, 6, PositionY, 6)
	
	hud_x = str_to_float(PositionX)
	hud_y = str_to_float(PositionY)
}
And1.S is offline
theprofessional123
Junior Member
Join Date: Dec 2019
Old 01-18-2020 , 02:55   Re: [ZP] Addon: Show team score v1.4
Reply With Quote #30

Does It Work On Zombie Escape?

Last edited by theprofessional123; 01-18-2020 at 02:56.
theprofessional123 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 20:15.


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