Raised This Month: $ Target: $400
 0% 

[SOLVED] Needed better Idea for getting attacker weapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 01-02-2014 , 07:06   [SOLVED] Needed better Idea for getting attacker weapon
Reply With Quote #1

hii all, i need some good suggestions & better way or new idea.... as i m wanted to give points as per specific weapon kills...

sooo is there any new idea to detect weapons....soo plugin can use low cpu usage...

if simple lang i dont want to use if that attacker has this or that weapon..


PHP Code:
public Event_Dead()
{
    new 
iKiller read_data(1);
    new 
iVictim read_data(2);
    new 
iHskill read_data(3);
    new 
weaponHitPoint get_user_attacker(iVictimweaponHitPoint);
    
    if(
weapon == CSW_KNIFE)
    {
        
// my points
    
}
    
    if(
weapon == CSW_M4A1)
    {
        if(
iHskill)
        {
            
// my points
        
}
        else
        {
            
// my points
        
}
    }
    
    if(
weapon == CSW_AK47)
    {
        if(
iHskill)
        {
            
// my points
        
}
        else
        {
            
// my points
        
}
    }
    
    if(
weapon == CSW_AWP)
    {
        if(
iHskill)
        {
            
// my points
        
}
        else
        {
            
// my points
        
}
    }
    
    if(
weapon == CSW_SCOUT)
    {
        if(
iHskill)
        {
            
// my points
        
}
        else
        {
            
// my points
        
}
    }
    
    if(
weapon == CSW_DEAGLE)
    {
        if(
iHskill)
        {
            
// my points
        
}
        else
        {
            
// my points
        
}
    }

__________________
All my work is here

Last edited by xxxperts; 01-27-2014 at 10:27.
xxxperts 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 10:07.


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