Raised This Month: $ Target: $400
 0% 

I can help?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
her0p
Senior Member
Join Date: Nov 2011
Old 02-13-2013 , 22:20   I can help?
Reply With Quote #1

will adapt this plugin for cs server normally, can say how?

http://forums.alliedmods.net/showthread.php?t=186150

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

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task(0.5,"HUDUpdate"0,"",0,"b")
    
    
/* CVARS */
    
    
register_cvar("zphud_rcolor","0"// RED
    
register_cvar("zphud_gcolor","255"// GREEN
    
register_cvar("zphud_bcolor","0"// BLUE
    
    
}

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.0)
    
show_dhudmessage(0"Zombies [%i] | [%i] Humans^nZombie Wins [%i] | [%i] Human Wins" zombieshumansZombieWinsHumanWins)


her0p is offline
 



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


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