Cerere Plugin Zm Score
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Forum rules
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
- Lothbrok
- Membru, skill +1
- Posts: 366
- Joined: 01 Jan 2013, 15:04
- Detinator Steam: Da
- Detinator server CS: Te intereseaza?
- SteamID: Te intereseaza?
- Reputatie: Fost Moderator ajutator
Membru club eXtreamCS (3 luni)
Nume anterior: Vechy!
Restrictie moderator - Location: Constanta
- Been thanked: 36 times
- Contact:
Code: Select all
#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)
}
http://svx.ro - MasterServer in teste.
http://cs16-download.com - Download CS 1.6
http://download-cs16.biz - Download CS 1.6
http://download-cs16.eu - Download CS 1.6
http://download-cs16.org - Download CS 1.6
http://cs16-download.com - Download CS 1.6
http://download-cs16.biz - Download CS 1.6
http://download-cs16.eu - Download CS 1.6
http://download-cs16.org - Download CS 1.6
-
- Membru, skill +1
- Posts: 317
- Joined: 24 May 2013, 18:49
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 23 times
- Been thanked: 1 time
- Contact:
vechy acesta , dar daca potzi sa faci tu ca zombie sa apara cu rosu si la human cu verde... daca poti, Kraid atau nu merge... nu mil compileaza
- FaNT4
- Membru, skill +1
- Posts: 281
- Joined: 28 Jul 2013, 16:42
- Detinator Steam: Nu
- Detinator server CS: ....
- SteamID: dane_furiencso
- Reputatie: Ban 2 luni!
- Has thanked: 56 times
- Been thanked: 18 times
- Contact:
Erorile ? :-jJumong wrote:Nu mi-l compliaza...
Tu vrei plimbari, poze la rasarit,
Da astea-s pacate in lumea mea,si eu m-am spovedit
Daca te-am ajutat apasa pe:
Da astea-s pacate in lumea mea,si eu m-am spovedit
Daca te-am ajutat apasa pe:
-
- Membru, skill 0
- Posts: 47
- Joined: 22 Sep 2013, 11:24
- Detinator Steam: Nu
- Location: localhost
- Has thanked: 5 times
- Been thanked: 1 time
- Contact:
E foarte bun !KrAiD. wrote: .amxx
Ai putea schimba sus acolo , sa scrie in loc de Terrorist sa scrie T si in loc de Counter-Terrorist sa scrie CT , ca apar prea inghesuite ,mersi !