Raised This Month: $ Target: $400
 0% 

Non player is out of range?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
colossus
Member
Join Date: Sep 2013
Old 08-16-2014 , 18:28   Re: Non player is out of range?
Reply With Quote #4

PHP Code:
public eDeath()   
{  
    new 
iKiller read_data(1);  
    new 
iVictim read_data(2); 
    new 
szKillMSG[50]; 
    new 
weapon_id fm_find_ent_by_owner(-1weapon_weaponiKiller);
    
    if(!
is_valid_ent(weaponid))
        return 
PLUGIN_CONTINUE
        
    
new ammo cs_get_weapon_ammo(weapon_id)
       
    if(
IsPlayer(iKiller) && is_user_alive(iKiller) && Tonly[iKiller])  
    {  
        if( 
iVictim != iKiller)  
        {
            if(
ammo
            { 
                
formatex(szKillMSGcharsmax(szKillMSG), "P"); 
                
cs_set_weapon_ammo(weapon_id1); 
            }
            else
                
formatex(szKillMSGcharsmax(szKillMSG), "K"); 
                
            
set_hudmessage(02550, -1.00.406.02.50.00.0, -1); 
            
show_hudmessage(iKillerszKillMSG)
        }
    }
    return 
PLUGIN_CONTINUE

TEST
colossus 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 12:57.


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