Raised This Month: $32 Target: $400
 8% 

Zp_cso_theme problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnimalMonster
Senior Member
Join Date: May 2020
Old 07-13-2020 , 08:35   Zp_cso_theme problem
Reply With Quote #1

Hey.......
When i turn on my self edited zp_cso_theme(just deleted what i didn t need) my server crashes ..
Code:
/hlds_run: line 321: 26087 Killed$HL_CMD Add "-debug" to the /hlds_run command line to generate a debug.log to help with solving this problem
That's what the console says when zp_cso_theme is active then s3rv3r starts normaly and after 2-3 rounds crashes again.
Can someone help?

Edit: i already tried to put -debug but nothing happend , just didn t show that thing but still crashed

May i share the edited zp_cso_theme?

Last edited by AnimalMonster; 07-13-2020 at 08:39.
AnimalMonster is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 07-13-2020 , 08:51   Re: Zp_cso_theme problem
Reply With Quote #2

Please provide Source Code so we can check code.

EDIT:

I think this thread can help u https://forums.alliedmods.net/showthread.php?t=155441 try to install plugin correctly.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod

Last edited by DON KHAN 1; 07-13-2020 at 08:56.
DON KHAN 1 is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 07-13-2020 , 10:52   Re: Zp_cso_theme problem
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#include <nvault>
#include <fun>
#include <zombieplague>
#include <dhudmessage>

#define zp_cso_lvlmax 10

/*------------------------------------------------------------------------------------------*
 [ ZP CSO Plugin Information ]
*------------------------------------------------------------------------------------------*/

/*---------------------------------------------*
 [ ZP CSO Plugin Name ]
*---------------------------------------------*/

new const ZP_CSO_PLUGIN_NAME[] = "Zp-cso-theme-edited"

/*---------------------------------------------*
 [ ZP CSO Plugin Version ]
*---------------------------------------------*/

new const ZP_CSO_PLUGIN_VERSION[] = "."

/*---------------------------------------------*
 [ ZP CSO Plugin Author ]
*---------------------------------------------*/

new const ZP_CSO_PLUGIN_AUTHOR[] = "."
/*------------------------------------------------------------------------------------------*
 [ ZP CSO Plugin Game Variables ]
*------------------------------------------------------------------------------------------*/

/*---------------------------------------------*
 [ ZP CSO Plugin Variables Needed ]
*---------------------------------------------*/

new zp_cso_czbot

/*---------------------------------------------*
 [ ZP CSO Plugin Points System ]
*---------------------------------------------*/
/*---------------------------------------------*
 [ ZP CSO Plugin HUD ]
*---------------------------------------------*/

new zp_center_textmsg

/*---------------------------------------------*
 [ ZP CSO Plugin HM & ZB Level Up System ]
*---------------------------------------------*/

new zp_cso_hmlvl

/*---------------------------------------------*
 [ ZP CSO Plugin KILL! System ]
*---------------------------------------------*/

new zp_cso_kill_lvl[33]
new 
zp_roundnum

/*---------------------------------------------*
 [ ZP CSO Plugin Respawn System ]
*---------------------------------------------*/
/*------------------------------------------------------------------------------------------*
 [ ZP CSO Plugin CVARs ]
*------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------*
 [ ZP CSO Plugin Sounds ]
*------------------------------------------------------------------------------------------*/

/*---------------------------------------------*
 [ ZP CSO Plugin Round Start MP3 ]
*---------------------------------------------*/

new const zp_cso_roundstart[][] = 
{
    
"sound/zombie_plague/cso/round_start.mp3",
    
"sound/zombie_plague/cso/round_start1.mp3",
    
"sound/zombie_plague/cso/round_start2.mp3",
    
"sound/zombie_plague/cso/round_start3.mp3"
}

/*---------------------------------------------*
 [ ZP CSO Plugin Zombie Ambience ]
*---------------------------------------------*/
/*-------------------------------------------*
 [ ZP CSO Plugin Infection Chant ]
*---------------------------------------------*/

new const zp_cso_infectchant[][] = 
{
    
"zombie_plague/cso/zombie_sound.wav",
    
"zombie_plague/cso/zombie_sound1.wav",
    
"zombie_plague/cso/zombie_sound2.wav"
}

new const 
zp_cso_human_lvlup[][] = 
{
    
"zombie_plague/cso/human_dmglvlup.wav"
}

new const 
zp_cso_dmg_lvl[11][] = 
{
    
"1.0",
    
"1.1",
    
"1.2",
    
"1.3",
    
"1.4",
    
"1.5",
    
"1.6",
    
"1.7",
    
"1.8",
    
"1.9",
    
"2.0"
}

new const 
zp_cso_hmlvl_r[11] =
{
    
0,
    
0,
    
0,
    
0,
    
255,
    
255,
    
255,
    
255,
    
255,
    
255,
    
255
}

/*---------------------------------------------*
 [ ZP CSO Plugin Human Level HUD Green ]
*---------------------------------------------*/

new const zp_cso_hmlvl_g[11] =
{
    
255,
    
255,
    
255,
    
255,
    
255,
    
255,
    
255,
    
155,
    
155,
    
155,
    
0
}

/*---------------------------------------------*
 [ ZP CSO Plugin Human Level HUD Blue ]
*---------------------------------------------*/

new const zp_cso_hmlvl_b[11] =
{
    
0,
    
0,
    
0,
    
0,
    
55,
    
55,
    
55,
    
55,
    
55,
    
55,
    
0
}

new const 
ZP_CSO_DMGHEGRENADE_BITSUM = (1<<24)

public 
plugin_init() 
{
    
register_plugin(ZP_CSO_PLUGIN_NAMEZP_CSO_PLUGIN_VERSIONZP_CSO_PLUGIN_AUTHOR)
    
    
register_event("HLTV""zp_cso_round_start""a""1=0""2=0")
    
register_logevent("zp_cso_round_start",2,"1=RoundStart")
    
register_event("DeathMsg""zp_cso_death""a""1>0")
    
    
RegisterHam(Ham_TakeDamage"player""zp_cso_takedamage")
    
    
zp_center_textmsg get_user_msgid("TextMsg")
}

public 
plugin_precache()
{
    new 
i
    
    
for(0sizeof zp_cso_roundstarti++) 
        
engfunc(EngFunc_PrecacheGenericzp_cso_roundstart[i])
        
    for(
0sizeof zp_cso_infectchanti++) 
        
engfunc(EngFunc_PrecacheSoundzp_cso_infectchant[i])
        
    for(
0sizeof zp_cso_human_lvlupi++) 
        
engfunc(EngFunc_PrecacheSoundzp_cso_human_lvlup[i])
}

public 
zp_cso_round_start()
{
    new 
iPlayers[32], iPlayeriPlayerNum
    
new iMP3MP3[64]
    
    
iMP3 random_num(0,charsmax(zp_cso_roundstart))
    
copy(MP3charsmax(MP3), zp_cso_roundstart[iMP3])
    
    
client_cmd(0,"mp3 play ^"%s^""MP3)
    
    
get_players(iPlayersiPlayerNum)
    
    for(new 
iNumiNum iPlayerNumiNum++)
    {
        
iPlayer iPlayers[iNum]
        
zp_cso_damage_plus(iPlayer0)
    }

    
zp_cso_hmlvl 0
}

public 
zp_cso_death()
{
    new 
iKiller read_data(1)
    new 
iVictim read_data(2)
    new 
iClipiAmmoget_user_weapon(iKilleriClipiAmmo)
    new 
iDmglvliHumans[32], iHumaniHumanNum
    
    
if(!zp_get_user_zombie(iKiller))
    {
        if(
zp_cso_hmlvl zp_cso_lvlmax
        {
            
zp_cso_hmlvl += 1
            iDmglvl 
zp_cso_hmlvl
            
            get_players
(iHumansiHumanNum)
            
            for(new 
iNum iNum iHumanNumiNum++)
            {
                
iHuman iHumans[iNum]
                
                
zp_cso_damage_plus(iHumaniDmglvl)
            }
        }
    }
    
    if(
iKiller == iVictim)
        return 
PLUGIN_CONTINUE
        
    
if(zp_get_user_zombie(iVictim))
    {
        
zp_cso_kill_lvl[iVictim] = 0
    
}
    
    return 
PLUGIN_CONTINUE
}
public 
zp_user_infected_post(id)
{
    if(
zp_get_user_nemesis(id) || zp_get_user_assassin(id))
    return 
PLUGIN_CONTINUE
    
new iMP3MP3[64]
    
    
iMP3 random_num(0,charsmax(zp_cso_infectchant))
    
copy(MP3charsmax(MP3), zp_cso_infectchant[iMP3])
    
    
client_cmd(0,"spk ^"%s^""MP3)
    
    return 
PLUGIN_CONTINUE
}
public 
zp_cso_takedamage(iVictimiInflictoriAttackerFloatiDamageiDamage_Type)
{
    if(
iAttacker == iVictim)
        return 
HAM_IGNORED
    
    
if (zp_get_user_zombie(iVictim))
    {
        if ((
iDamage_Type ZP_CSO_DMGHEGRENADE_BITSUM) && !zp_get_user_zombie(iAttacker))
        {
            new 
Floatzp_hedmg 500.0 zp_cso_hmlvl
            iDamage 
zp_hedmg
        
}
        
        else if (
zp_cso_hmlvl)
        {
            new 
Floatzp_dmg_lvl str_to_float(zp_cso_dmg_lvl[zp_cso_hmlvl])
            
iDamage *= zp_dmg_lvl
        
}
        
        
SetHamParamFloat(4iDamage)
        return 
HAM_IGNORED
    
}
    
    return 
HAM_IGNORED
}

public 
zp_round_ended()
{
    
zp_roundnum += 1
}

public 
client_putinserver(id
{
    
zp_cso_auto_on(id)
}

public 
zp_cso_auto_on(id)
{
    
set_task(0.3,"zp_scorehud"id__"b")
    
    if(!
zp_cso_czbot)
    {
        
set_task(0.1"zp_cso_register_czbot"id)
    }
}

public 
zp_scorehud(id)
{
    
set_hudmessage(212255170, -1.00.006.012.0)
    
show_hudmessage(id"%d- Humans vs Zombies -%d^nRound -%d",zp_get_human_count(),zp_get_zombie_count(),zp_roundnum)
}

public 
zp_cso_register_czbot(id)
{
    if (
zp_cso_czbot || !is_user_connected(id) || !is_user_bot(id))
        return 
PLUGIN_CONTINUE
    
    RegisterHamFromEntity
(Ham_TakeDamageid"zp_cso_takedamage")
    
    
zp_cso_czbot true
    
    
return PLUGIN_CONTINUE
}

zp_cso_damage_plus(HumanDamage_Plus)
{
    if (!
is_user_alive(Human) || zp_get_user_zombie(Human)) 
        return 
PLUGIN_CONTINUE
    
if(zp_get_user_assassin(Human) || zp_get_user_sniper(Human) || zp_get_user_survivor(Human) || zp_get_user_nemesis(Human))
        return 
PLUGIN_CONTINUE
        
    
if(zp_cso_hmlvl == 0)
        return 
PLUGIN_CONTINUE
    
    
new Floatzp_origin[3], zp_rzp_gzp_biSoundiSpeak[64], iText[64]
    
    
zp_r zp_cso_hmlvl_r[Damage_Plus]
    
zp_g zp_cso_hmlvl_g[Damage_Plus]
    
zp_b zp_cso_hmlvl_b[Damage_Plus]
        
    
pev(Humanpev_originzp_origin)
    
    
iSound random_num(0charsmax(zp_cso_human_lvlup))
    
copy(iSpeakcharsmax(iSpeak), zp_cso_human_lvlup[iSound])
    
client_cmd(Human,"spk ^"%s^""iSpeak)
    
    
format(iTextcharsmax(iText), "Morale Boost Stage Up %d"Damage_Plus)
    
zp_clientcenter_text(HumaniText)
    
    
zp_cso_setrendering(Human)
    
zp_cso_setrendering(HumankRenderFxGlowShellzp_rzp_gzp_bkRenderNormal0)
    return 
PLUGIN_CONTINUE
}

stock zp_clientcenter_text(idzp_message[])
{
    new 
dest
    
if (iddest MSG_ONE
    
else dest MSG_ALL
    
    message_begin
(destzp_center_textmsg, {0,0,0}, id)
    
write_byte(4)
    
write_string(zp_message)
    
message_end()
}

stock zp_cso_setrendering(Humanzp_fx kRenderFxNonezp_r 255zp_g 255zp_b 255zp_render kRenderNormalzp_amount 16)
{
    static 
Floatzp_color[3]
    
    
zp_color[0] = float(zp_r)
    
zp_color[1] = float(zp_g)
    
zp_color[2] = float(zp_b)
    
    
set_pev(Humanpev_renderfxzp_fx)
    
set_pev(Humanpev_rendercolorzp_color)
    
set_pev(Humanpev_rendermodezp_render)
    
set_pev(Humanpev_renderamtfloat(zp_amount))

This is all i needed from plugin so the rest i deleted
AnimalMonster is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 07-13-2020 , 11:06   Re: Zp_cso_theme problem
Reply With Quote #4

Lol, i don't know if it is solved fir real or not but im on my server and i see it doesn't crash anymore after renaming hlds_run to hlds_run-debug
AnimalMonster is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 07-14-2020 , 04:12   Re: Zp_cso_theme problem
Reply With Quote #5

Quote:
Originally Posted by AnimalMonster View Post
Lol, i don't know if it is solved fir real or not but im on my server and i see it doesn't crash anymore after renaming hlds_run to hlds_run-debug
then it was ur HLDS problem.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 07-14-2020 , 05:17   Re: Zp_cso_theme problem
Reply With Quote #6

Technically if i renamed it to this i was like it wasn't there
AnimalMonster is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 07-14-2020 , 05:18   Re: Zp_cso_theme problem
Reply With Quote #7

So, anyone any suggestions?
AnimalMonster is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 07-14-2020 , 05:29   Re: Zp_cso_theme problem
Reply With Quote #8

I should go to hlds topic and post there
AnimalMonster is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-14-2020 , 09:00   Re: Zp_cso_theme problem
Reply With Quote #9

Quote:
Originally Posted by AnimalMonster View Post
Lol, i don't know if it is solved fir real or not but im on my server and i see it doesn't crash anymore after renaming hlds_run to hlds_run-debug
Yeah, nice solution. Why not give deleting the entire server a try?
Renaming files that should be located by the game is the same as deleting them.

Adding "-debug" doesn't mean adding it in the file's name. It clearly says to add it in the command line.
__________________

Last edited by OciXCrom; 07-14-2020 at 09:01.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

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 02:11.


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