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)
__________________