get attackers gun
hi
im working on a script for surf_ninja. where if your gun is != to Shotgun and you attack someone whos gun is != shotgun then you get slayed. how do i use a get_user_weapon or get_weaponname functions? Code:
heres the orginal un-modifed code this is a working script atm, just trying to add some more fuctionality to it. so i want to it to slay anyone who doesnt have a shotgun and attacks. but not slay them if they attack the shotgun carrier and vice versa |
Make a new variable and add a third parameter to get_user_attacker. That will give you the weapon ID of the attacker.
|
already got that its stored in a varable called "attacker"
found this in someones Question Code:
how do i check if weapon is a scout or knife? |
o right now i see wot u mean.
but how do i still check to see if its a scout |
Assuming weapon contains the weapon ID..
Code:
|
Code:
any idea as to why it doesnt work? if you shoot someone with a usp it kills u. it just kills you for shooting with any weapon |
Try this:
Code:
|
Quote:
Code:
|
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:
This is where it finds out what weapons are in use. Code:
|
| All times are GMT -4. The time now is 20:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.