Raised This Month: $ Target: $400
 0% 

Non player is out of range?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 08-17-2014 , 04:54   Re: Non player is out of range?
Reply With Quote #1

Quote:
Originally Posted by colossus View Post
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
Now you don't get +1 bullet if u kill someone
proffs is offline
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 12:57.


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