Raised This Month: $12 Target: $400
 3% 

Subplugin Submission Zombie Plague Advance !! Updated to v1.6.1 on 11th September 2010 !!


Post New Thread Reply   
 
Thread Tools Display Modes
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-21-2010 , 06:06   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #121

Quote:
Originally Posted by Zloj View Post
Something is wrong with this plugin, i added everything in the right places, everything seems to be working but when i want to change map, my server crashes, and displays no errors in logs. Where could be the problem?
it's from the sniper gore effect
try disabling it by cvar (zp_sniper_frag_gore 0)
if it still crashes try disabling the nemesis gore effect too (zp_nem_frag_gore 0)

@abdul-rehman
PHP Code:
    // When killed by a Sniper victim explodes
    
if (g_sniper[attacker])
    {
        new 
weapon get_user_weapon(attacker)
        if (
get_pcvar_num(cvar_sniperfraggore) && weapon == CSW_AWP)
        {
            if (
g_zombie[victim])
            {
                if (
g_nemesis[victim] || g_assassin[victim])
                    return;
                else
                {
                    new 
origin[3]
                    
get_user_origin(victimorigin)
                    
                    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
                    
write_byte(TE_LAVASPLASH)
                    
write_coord(origin[0])
                    
write_coord(origin[1])
                    
write_coord(origin[2]-26)
                    
message_end()
                    
                    
SetHamParamInteger(32)
                }
            }
        }
    }
    
    
// When killed by a Assassin victim is cut in pieces, if not Survivor or Sniper
    
if (g_assassin[attacker])
    {
        if (
get_pcvar_num(cvar_nemfraggore))
        {
            if (
g_survivor[victim] || g_sniper[victim])
                return;
            else
                
SetHamParamInteger(32)
        }
    } 
change to
PHP Code:
    // When killed by a Sniper victim explodes
    
if (g_sniper[attacker])
    {
        if (
g_currentweapon[attacker] != CSW_AWP)
            return;
        
        if (!
get_pcvar_num(cvar_sniperfraggore))
            return;
        
        if (
g_zombie[victim])
        {
            if (
g_nemesis[victim])
                return;
            
            
SetHamParamInteger(32)
            
            new 
origin[3]
            
get_user_origin(victimorigin)
            
            
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
            
write_byte(TE_LAVASPLASH)
            
write_coord(origin[0])
            
write_coord(origin[1])
            
write_coord(origin[2]-26)
            
message_end()
        }
    }
    
    
// When killed by a Nemesis victim is cut in pieces, if not Survivor or Sniper
    
if (g_nemesis[attacker])
    {
        if (!
get_pcvar_num(cvar_nemfraggore))
            return;
        
        if (
g_survivor[victim] || g_sniper[victim])
            return;
        
        
SetHamParamInteger(32)
    } 
this should fix the crashes because of the sniper gore function, but i'm not so sure about the nemesis gore one...that one may still crash it...i think it's because of the SetHamParamInteger(3, 2)
need someone better at scripting's help
EDIT: also modify
PHP Code:
        // Replace damage done by Sniper's weapon with the one set by cvar
        
if (g_sniper[attacker])
        {
            new 
weapon get_user_weapon(attacker)
            if (
weapon == CSW_AWP)
            {
                
// Set sniper damage
                
SetHamParamFloat(4get_pcvar_float(cvar_sniperdamage))
            }
        } 
to
PHP Code:
        // Replace damage done by Sniper's weapon with the one set by cvar
        
if (g_sniper[attacker])
        {
            if (
g_currentweapon[attacker] != CSW_AWP)
                return 
HAM_SUPERCEDE;
            
            
// Set sniper damage
            
damage *= get_pcvar_float(cvar_sniperdamage)
            
SetHamParamFloat(4damage)
        } 
__________________

Last edited by georgik57; 03-21-2010 at 06:10.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 03-21-2010 , 06:32   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #122

Quote:
Originally Posted by georgik57 View Post
it's from the sniper gore effect
try disabling it by cvar (zp_sniper_frag_gore 0)
if it still crashes try disabling the nemesis gore effect too (zp_nem_frag_gore 0)

@abdul-rehman
PHP Code:
    // When killed by a Sniper victim explodes
    
if (g_sniper[attacker])
    {
        new 
weapon get_user_weapon(attacker)
        if (
get_pcvar_num(cvar_sniperfraggore) && weapon == CSW_AWP)
        {
            if (
g_zombie[victim])
            {
                if (
g_nemesis[victim] || g_assassin[victim])
                    return;
                else
                {
                    new 
origin[3]
                    
get_user_origin(victimorigin)
 
                    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
                    
write_byte(TE_LAVASPLASH)
                    
write_coord(origin[0])
                    
write_coord(origin[1])
                    
write_coord(origin[2]-26)
                    
message_end()
 
                    
SetHamParamInteger(32)
                }
            }
        }
    }
 
    
// When killed by a Assassin victim is cut in pieces, if not Survivor or Sniper
    
if (g_assassin[attacker])
    {
        if (
get_pcvar_num(cvar_nemfraggore))
        {
            if (
g_survivor[victim] || g_sniper[victim])
                return;
            else
                
SetHamParamInteger(32)
        }
    } 
change to
PHP Code:
    // When killed by a Sniper victim explodes
    
if (g_sniper[attacker])
    {
        if (
g_currentweapon[attacker] != CSW_AWP)
            return;
 
        if (!
get_pcvar_num(cvar_sniperfraggore))
            return;
 
        if (
g_zombie[victim])
        {
            if (
g_nemesis[victim])
                return;
 
            
SetHamParamInteger(32)
 
            new 
origin[3]
            
get_user_origin(victimorigin)
 
            
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
            
write_byte(TE_LAVASPLASH)
            
write_coord(origin[0])
            
write_coord(origin[1])
            
write_coord(origin[2]-26)
            
message_end()
        }
    }
 
    
// When killed by a Nemesis victim is cut in pieces, if not Survivor or Sniper
    
if (g_nemesis[attacker])
    {
        if (!
get_pcvar_num(cvar_nemfraggore))
            return;
 
        if (
g_survivor[victim] || g_sniper[victim])
            return;
 
        
SetHamParamInteger(32)
    } 
this should fix the crashes because of the sniper gore function, but i'm not so sure about the nemesis gore one...that one may still crash it...i think it's because of the SetHamParamInteger(3, 2)
need someone better at scripting's help
EDIT: also modify
PHP Code:
        // Replace damage done by Sniper's weapon with the one set by cvar
        
if (g_sniper[attacker])
        {
            new 
weapon get_user_weapon(attacker)
            if (
weapon == CSW_AWP)
            {
                
// Set sniper damage
                
SetHamParamFloat(4get_pcvar_float(cvar_sniperdamage))
            }
        } 
to
PHP Code:
        // Replace damage done by Sniper's weapon with the one set by cvar
        
if (g_sniper[attacker])
        {
            if (
g_currentweapon[attacker] != CSW_AWP)
                return 
HAM_SUPERCEDE;
 
            
// Set sniper damage
            
damage *= get_pcvar_float(cvar_sniperdamage)
            
SetHamParamFloat(4damage)
        } 
Ya i'll do the job THANKS AGIAN
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Zloj
Member
Join Date: May 2009
Location: Lithuania/Klaipėda
Old 03-21-2010 , 07:53   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #123

Georgik i tried to disable this cvar (zp_sniper_frag_gore 0) -- didnt helped. And talking about this cvar (zp_nem_frag_gore 0) there aren't cvar like this one, so i added that cvar on zombieplaguenew.cfg by my self.

Quote:
// Nemesis
// -------
zp_nem_enabled 1 // Enable nemesis mode
zp_nem_chance 20 // Chance (1 in X)
zp_nem_min_players 0 // Minimum players required
zp_nem_health 0 // Health [0 - human count*base health]
zp_nem_base_health 0 // Base health [0 - use first zombie's health]
zp_nem_speed 250 // Speed
zp_nem_gravity 0.5 // Gravity (0.5 = half)
zp_nem_damage 250 // Damage per hit
zp_nem_glow 1 // Glow effect
zp_nem_aura 1 // Halo effect
zp_nem_painfree 0 // Pain shock free
zp_nem_ignore_frags 1 // Whether to earn frags
zp_nem_ignore_rewards 1 // Whether to earn ammo packs
zp_nem_frag_gore 0
Quote:
// Special Effects
// ---------------
zp_infection_screenfade 1 // Screen fade for infected player
zp_infection_screenshake 1 // Screen shake for infected player
zp_infection_sparkle 1 // Light sparkle on infection
zp_infection_tracers 1 // Tracers on infection
zp_infection_particles 1 // Particles on infection
zp_hud_icons 1 // Display small HUD icons on infection, burning, and freeze events
zp_sniper_frag_gore 0 // When killed by a Sniper, Zombies explode
zp_assassin_frag_gore 0 // When killed by an Assassin, Humans are cut in pieces
__________________


Last edited by Zloj; 03-21-2010 at 08:16.
Zloj is offline
Send a message via Yahoo to Zloj Send a message via Skype™ to Zloj
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-22-2010 , 08:58   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #124

Quote:
Originally Posted by Zloj View Post
Georgik i tried to disable this cvar (zp_sniper_frag_gore 0) -- didnt helped. And talking about this cvar (zp_nem_frag_gore 0) there aren't cvar like this one, so i added that cvar on zombieplaguenew.cfg by my self.
zp_assassin_frag_gore 0
it's this one
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Zloj
Member
Join Date: May 2009
Location: Lithuania/Klaipėda
Old 03-22-2010 , 13:21   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #125

As you can see:

Quote:
// Special Effects
// ---------------
zp_infection_screenfade 1 // Screen fade for infected player
zp_infection_screenshake 1 // Screen shake for infected player
zp_infection_sparkle 1 // Light sparkle on infection
zp_infection_tracers 1 // Tracers on infection
zp_infection_particles 1 // Particles on infection
zp_hud_icons 1 // Display small HUD icons on infection, burning, and freeze events
zp_sniper_frag_gore 0 // When killed by a Sniper, Zombies explode
zp_assassin_frag_gore 0 // When killed by an Assassin, Humans are cut in pieces
And server still crashes when changing map.
__________________

Zloj is offline
Send a message via Yahoo to Zloj Send a message via Skype™ to Zloj
MazeFaka
Member
Join Date: Oct 2008
Old 03-22-2010 , 13:34   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #126

why when I compile this compilator said that "!zp_get_user_assassin(id)" is "undefined symbol"?
this from "zp_corpse" plugin:
Quote:
#include <amxmodx>
#include <fakemeta>
#include <xs>
#include <zombieplague>
........
........
........
public task_drink_juice(param[2])
{
new id = param[0]
new corpse = param[1]

if (is_user_alive(id) && (pev(id, pev_button) & IN_USE) && can_drink(id, corpse) && zp_get_user_zombie(id) && !zp_get_user_assassin(id))
{
new Float:health
pev(id, pev_health, health)
if (health < HEALTH_LIMIT)
{
suction_sound(id)
new amount = get_pcvar_num(g_pcvar_suction_amount)
set_pev(id, pev_health, health + amount)
g_juice[corpse] -= amount

return
}
}

if (g_msgid_bartime2)
msg_bartime2(id, 0, 0)

remove_task(id)
}
........
........
........

Last edited by MazeFaka; 03-22-2010 at 13:38.
MazeFaka is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 03-22-2010 , 13:48   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #127

Quote:
Originally Posted by MazeFaka View Post
why when I compile this compilator said that "!zp_get_user_assassin(id)" is "undefined symbol"?
this from "zp_corpse" plugin:
U must use this:
#include <zombieplaguenew1.3>
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
MazeFaka
Member
Join Date: Oct 2008
Old 03-22-2010 , 13:53   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #128

Quote:
Originally Posted by abdul-rehman View Post
U must use this:
#include <zombieplaguenew1.3>
THX =) its work ^_^
MazeFaka is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-22-2010 , 14:37   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #129

Quote:
Originally Posted by Zloj View Post
As you can see:

And server still crashes when changing map.
then you should really wait for abdul's next update
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Zloj
Member
Join Date: May 2009
Location: Lithuania/Klaipėda
Old 03-22-2010 , 18:07   Re: Zombie Plague 4.3 + New Modes [Organized Admin Menu] !! UPDATED v1.4 !!
Reply With Quote #130

Quote:
Originally Posted by georgik57 View Post
then you should really wait for abdul's next update
Damn, its so sad, abdul cmon make an update
__________________

Zloj is offline
Send a message via Yahoo to Zloj Send a message via Skype™ to Zloj
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 21:04.


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