Raised This Month: $ Target: $400
 0% 

[HELP] Error Survivor Damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abood alnjjar
Member
Join Date: Oct 2015
Location: palestine
Old 01-27-2016 , 13:14   [HELP] Error Survivor Damage
Reply With Quote #1

Hi Guys

i have Error compile this plugine plees help

PHP Code:
#include <amxmodx> 
#include <hamsandwich> 
#include <cs_ham_bots_api> 
#include <cstrike> 
#include <zombieplague>
#include <zp50_class_survivor> 
#include <zp50_grenade_frost>

new cvar_multiplier 

public plugin_init()  

    
register_plugin("[ZP] Survivor Damage Customizer""1.0""gogicaa"
     
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage_Post"1
    
RegisterHamBots(Ham_TakeDamage"fw_TakeDamage_Post"1
     
    
cvar_multiplier register_cvar("zp_survivor_damaga_multiplier""2.0"


public 
fw_TakeDamage_Post(victiminflictorattackerFloat:damagedamage_type

    if (
victim == attacker || !is_user_alive(attacker)) 
        return 
     
    if(
zp_class_survivor_get(attacker))
    
SetHamParamFloat (4damage get_pcvar_float(cvar_multiplier))
    
    
iDam[attacker] += damage get_pcvar_float(cvar_dmgmultiplier))

        if(
iDam[attacker] >= 2000)
}  
           
zp_grenade_frost_set(victim,true)
           
iDam[attacker] = 0
        
}
        
set_task(2.0"remove"victim)
}


public 
zp_fw_core_cure_post(id)
{
       if(
is_user_alive(id))
       {
           
iDam[id] = 0    
       
}
}

public 
zp_fw_core_infect_post(id)
{
       if(
is_user_alive(id))
       {
           
iDam[id] = 0    
       
}
}

public 
zp_fw_core_spawn_post(id)
{
       if(
is_user_alive(id))
       {
           
iDam[id] = 0    
       
}
}
       
public 
remove(id)
{
       if(
is_user_connected(id) && is_user_alive(id))
       {

       
zp_grenade_frost_set(idfalse)
       } 
__________________
abood alnjjar 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 09:22.


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