Raised This Month: $ Target: $400
 0% 

not to be zombie the last CT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JDM.
Junior Member
Join Date: Nov 2013
Old 11-17-2013 , 05:33   not to be zombie the last CT
Reply With Quote #1

PHP Code:
public fwdTakeDamage(VictiminflictorAttackerFloat:damagebits) {
    if(!
is_user_alive(Victim) || !is_user_alive(Attacker)) {
        return 
HAM_IGNORED
    
}
    if(
g_zombie[Victim] && g_zombie[Attacker]) {
        return 
HAM_SUPERCEDE
    
}
    if(!
infect_allowed()) {
        
SetHamParamFloat(4damage 2
        return 
HAM_IGNORED
    
}
    if(
g_zombie[Attacker] && get_user_weapon(Attacker) == CSW_KNIFE) {
        
update_frags(Attacker1)
        
update_deaths(Victim1)

        
set_user_zombie(Victim)
    } else if(
g_zombie[Victim] && !g_zombie[Attacker]) {
        
set_pdata_float(Victim1081.050)

        static 
Float:MyOrigin[3]
        
pev(Attackerpev_originMyOrigin)

        
hook_ent2(VictimMyOrigin100.02)
    }
    if(
g_zombie[Victim]) {
        
emit_sound(VictimCHAN_VOICESounds[1],  VOL_NORMATTN_NORM0PITCH_NORM);    
    }
    return 
HAM_HANDLED
}
stock bool:infect_allowed() {  
    static 
0;  
    static 
0;  

    for(
iget_maxplayers(); i++) {  
        if((
get_user_team(i) != && get_user_team(i) != ) || !is_user_connected(i))  
        continue 
             
        
i++ 
        if(
g_zombie[i]) {  
            
j++; 
        }
    }      
    return ((
j) == 1) ? false true;  

i use this code. 1vs1 nice working but, when more than two player not working

I want to do, such as biohazard.
JDM. 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 23:14.


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