Thread: [Subplugin Submission] [T] List of Modified + Requested Plugins
View Single Post
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-14-2014 , 06:30   Re: [ZP] List of Modified Version Plugin
Reply With Quote #11

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(PLUGINVERSIONAUTHOR)
    
    
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(modeid)
{
    
// Update var with Mode num
    
g_Mode mode
    
    
// An unofficial mode
    
if(!(<= 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.00.0506.012.06.01.0)
    
show_dhudmessage(0"Zombies [%i] <|> [%i] Humans^nZombie wins [%i] <|> [%i] Human wins^n%s %s" zombieshumansZombieWinsHumanWins, (g_Mode == "" hud_tag), mode_names[g_Mode])


__________________

Just an old fart revisiting the nostalgia.
---------
Oh yeah
|[[ZPA/ZPS]NoSound]|[[ZPA/ZPS]Hud Stats(Edited)]|

PS: I go by MoistWomble nowadays.

Last edited by Just4Games; 07-14-2014 at 06:38.
Just4Games is offline