Raised This Month: $ Target: $400
 0% 

[FIX REQ] Zombie Plugin fix needed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dare.Devil
Member
Join Date: May 2014
Old 08-06-2014 , 04:16   [FIX REQ] Zombie Plugin fix needed
Reply With Quote #1

hi all,
can anyone help me solve this error? ..when I try to complie this plug (along with the rest of it) I get error from (damagebits == DMG_GRENADE)
I'm using amxx Studio and error says: Error: Undefined symbol "DMG_GRENADE" on line 2031

can anyone help me with this?! .. thanks in advance
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{
    if(
g_gamestart 2)
        return 
HAM_SUPERCEDE
    
if(!is_user_connected(victim) || !is_user_connected(attacker))
        return 
HAM_IGNORED
    
if(!g_zombie[victim] && !g_zombie[attacker])
        return 
HAM_SUPERCEDE
    
if(g_zombie[victim] && g_zombie[attacker])
        return 
HAM_SUPERCEDE        
    
if(g_zombie[attacker] && get_user_weapon(attacker) == CSW_KNIFE)
    {
        if(
damagebits == DMG_GRENADE)
            return 
HAM_SUPERCEDE
        
        message_begin
(MSG_BROADCASTg_MsgDeathMsg)
        
write_byte(attacker// killer
        
write_byte(victim// victim
        
write_byte(0// headshot flag
        
write_string("knife"// killer's weapon
        
message_end()
        
        
FixDeadAttrib(victim)
        
        
update_frags(attacker1)
        
update_deaths(victim1)
        
        
set_user_zombie(victimZOMBIE_TYPE_HOST0)
        
ExecuteForward(g_forwards[FORWARD_INFECTED], g_fwDummyResultvictimattacker)
    } else if(
g_zombie[victim] && !g_zombie[attacker]) {
        
set_pdata_float(victim1081.050)
        
        static 
Float:MyOrigin[3]
        
pev(attackerpev_originMyOrigin)
        
        
hook_ent2(victimMyOrigincfg_zombie_kbpower2)
    }
    
    return 
HAM_HANDLED
}

public 
update_frags(idfrag)
{
    if(!
is_user_connected(id))
        return
    
    
set_pev(idpev_fragsfloat(pev(idpev_frags) + frag))
    
    
message_begin(MSG_BROADCASTget_user_msgid("ScoreInfo"))
    
write_byte(id// id
    
write_short(pev(idpev_frags)) // frags
    
write_short(cs_get_user_deaths(id)) // deaths
    
write_short(0// class?
    
write_short(get_pdata_int(id1145)) // team
    
message_end()

Dare.Devil is offline
 


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 13:15.


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