The correct orders of ZP Shade modes is:
Quote:
Normal Infection
Nemesis
Survivor
Swarm
Multiple Infection
Plague
Sniper
Assassin
Bombardier
Armageddon
|
By the way, zmd how about the other version of Display the current mode plugin i showed you?
It counts the alive humans and alive zombies, the score between the teams and shows the current mode

It uses the Direct Hud Messages(which in my opinion it's very cool).
This plugin was edited for ZP Shade!
Here is the code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <dhudmessage>
#define PLUGIN "Zombie Addon : HUD Stats "
#define VERSION "1.0"
#define AUTHOR "KiA"
/* Initialization */
new ZombieWins
new HumanWins
new g_Mode
new const hud_tag[] = "Current mode:" //"Curent Mode"
// Name for each Hudmessage Mode
new const mode_names[][] =
{
"Waiting for a mode to start...", // No mode Started
"[Normal Infection]", // Normal Infection, single round
"[Nemesis]", // Nemesis Mode (zombie boss)
"[Survivor]", // Survivor Mode (human boss)
"[Swarm]", // Swarm round (no infections)
"[Multiple Infection]", // Multiple Infection (like single round, but, more than 1 zombie)
"[Plague]", // Plague round (nemesis & zombies vs. survivors & humans)
"[Sniper]", // Sniper Mode (human boss)
"[Assassin]", // Assasin Mode (zombie boss)
"[Bombardier]", // Bombardier Mode (zombie boss)
"[Armageddon]" // LNJ round (nemesis & zombies vs. survivors & humans)
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
set_task(0.5,"HUDUpdate", 0,"",0,"b")
/* CVARS */
register_cvar("zphud_rcolor","255") // RED
register_cvar("zphud_gcolor","0") // GREEN
register_cvar("zphud_bcolor","0") // BLUE
}
public event_RoundStart()
{
// Update var (no mode started / in delay)
g_Mode = 0
}
public zp_round_started(mode, id)
{
// Update var with Mode num
g_Mode = mode
// An unofficial mode
if(!(1 <= mode < (sizeof(mode_names) - 1)))
g_Mode = sizeof(mode_names) - 1
}
public zp_round_ended(WinTeam)
{
switch(WinTeam)
{
case ZP_TEAM_ZOMBIE: {
ZombieWins = ZombieWins + 1
}
case ZP_TEAM_HUMAN: {
HumanWins = HumanWins + 1
}
}
}
public HUDUpdate()
{
new zombies = zp_get_zombie_count()
new humans = zp_get_human_count()
set_dhudmessage(get_cvar_num("zphud_rcolor"),get_cvar_num("zphud_gcolor"),get_cvar_num("zphud_bcolor"), -1.0, 0.05, 0, 6.0, 12.0, 6.0, 1.0)
show_dhudmessage(0, "Zombies [%i] <|> [%i] Humans^nZombie wins [%i] <|> [%i] Human wins^n%s %s" , zombies, humans, ZombieWins, HumanWins, (g_Mode == 0 ? "" : hud_tag), mode_names[g_Mode])
}
__________________