Raised This Month: $ Target: $400
 0% 

I can help?


Post New Thread Reply   
 
Thread Tools Display Modes
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
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-14-2013 , 08:29   Re: I can help?
Reply With Quote #2

You want to know, how to launch a plugin?
Unkolix is offline
her0p
Senior Member
Join Date: Nov 2011
Old 02-14-2013 , 18:09   Re: I can help?
Reply With Quote #3

I want to fix this error to make it work on a server in cs, not zombie


PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <dhudmessage>

#define PLUGIN    "HUD Stats "
#define VERSION    "1.0"
#define AUTHOR    "KiA"

/* Initialization */

new TerroWins
new CtWins

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 
CS_TEAM_T: {
            
TerroWins TerroWins 1
        
}
        case 
CS_TEAM_CT: {
            
CtWins CtWins 1
        
}
    }
}

public 
HUDUpdate()
{
    new 
terror CS_TEAM_T()
    new 
cts CS_TEAM_CT()
    
    
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"Terroristas [%i] | [%i] Counter^nTerroristas Wins [%i] | [%i] Counter Wins" terrorctsTerroWinsCtWins)


I tried but I get this error

PHP Code:
ErrorInvalid function callnot a valid address on line 45
Error
Invalid expressionassumed zero on line 45
Warning
Expression has no effect on line 45
Error
Invalid function callnot a valid address on line 46
Error
Too many error messages on one line on line 46 

Last edited by her0p; 02-14-2013 at 18:10.
her0p is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 02-14-2013 , 18:32   Re: I can help?
Reply With Quote #4

You removed #include <zombieplague> that's why it failed.
Torge is offline
her0p
Senior Member
Join Date: Nov 2011
Old 02-14-2013 , 19:01   Re: I can help?
Reply With Quote #5

Quote:
Originally Posted by Torge View Post
You removed #include <zombieplague> that's why it failed.
I want to work on a server without cs zombie mod, so remove the include to adapt. The original strip me this error.

PHP Code:
[AMXXPlugin "hud_stats.amxx" failed to loadPlugin uses an unknown function (name "zp_get_human_count") - check your modules.ini
her0p is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 02-14-2013 , 19:17   Re: I can help?
Reply With Quote #6

@her0p
You need to rewrite the plugin. I suggest you search "team score" in the scripting help forum.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Old 02-15-2013, 00:19
Kia
This message has been deleted by Kia.
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 02-15-2013 , 10:14   Re: I can help?
Reply With Quote #7

Here you go : https://forums.alliedmods.net/showth...14#post1894914
__________________
Kia is offline
her0p
Senior Member
Join Date: Nov 2011
Old 02-15-2013 , 18:35   Re: I can help?
Reply With Quote #8

Quote:
Originally Posted by Kia View Post
thank you very much, nice plugin
her0p 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:40.


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