Help with weapon ..
#10

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
No, that literally gets a players weapon data going slot by slot. I don't know how helpful this is, but I would at least read through the "tutorial". It just gives code on how to check if a player is shooting an NPC, but you could probably change it up a little. Good luck!
No offense but your comments aren't exactly smart either.

You could detect both if someone is KILLED by Silenced Pistol, or if they are SHOT with it.

The first is easy - Check the reason of the players death, if it is by Silenced Pistol, execute code. Alternatively, you could GetPlayerWeaponData for the pistol slot of the killer and see if it's Silenced Pistol.

For the last method, to detect merely when someone shoots, you'll need some advanced code. It's not impossible, but I can tell you it's a pain in the ass. But try searching for some of the head-shot detecting scripts, you might be able to learn something from those.

Good luck.
Reply


Messages In This Thread
[HELP] - with weapon stuff - by Matej_ - 07.10.2010, 17:27
Re: Help with weapon .. - by Matej_ - 07.10.2010, 17:52
Re: Help with weapon .. - by Scenario - 07.10.2010, 17:54
Re: Help with weapon .. - by Matej_ - 07.10.2010, 18:30
Re: Help with weapon .. - by Scenario - 07.10.2010, 20:53
Re: Help with weapon .. - by WillyP - 07.10.2010, 21:10
Re: Help with weapon .. - by Scenario - 07.10.2010, 21:21
Re: Help with weapon .. - by Lenny the Cup - 07.10.2010, 22:58
Re: Help with weapon .. - by Grim_ - 07.10.2010, 23:06
Re: Help with weapon .. - by CrucixTM - 08.10.2010, 00:20

Forum Jump:


Users browsing this thread: 2 Guest(s)