Raised This Month: $ Target: $400
 0% 

get attackers gun


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Anthraxnz
Senior Member
Join Date: May 2005
Location: New Zealand
Old 03-01-2006 , 02:53  
Reply With Quote #9

is there a way to store the person who was attacked?


ie store the victims ID in a varable

trying to figure out how to make it so if the attacker has a shotgun then the victim can shoot without being slayed.
heres the code i thoight might work but doesnt

Code:
    //If Victim Has Scout and Attacker has NOT Scout || Knife DO NOT Slay     if( weaponVic == CSW_SCOUT || weaponVic == CSW_KNIFE && weaponAttacker != CSW_SCOUT || weaponAttacker != CSW_KNIFE){         return PLUGIN_CONTINUE     }

This is where it finds out what weapons are in use.
Code:
        new attacker = get_user_attacker(id)     new ammo, clip, weaponAttacker = get_user_weapon(attacker,clip,ammo)         get_user_name(attacker, attackerName, 17)     new victimAttacked = get_user_name(id, victimName, 17)     new ammoVic, clipVic, weaponVic = get_user_weapon(victimAttacked,clipVic,ammoVic)
__________________
Dont know how to add admins?

use my program
http://www.amxmodx.org/forums/viewto...=129092#129092

it does the work for you ... sort of
Anthraxnz 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 20:25.


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