****** weapons detecter - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ****** weapons detecter (
/showthread.php?tid=607185)
****** weapons detecter -
D3vin - 15.05.2016
I have a stock of weapons that are being held by the player
(stock Haveweapon(playerid, weaponid)
though, hacked weapons can be detectable only when they are held by a player in his hand, otherwise I cant detect it, any chances to improve this? I want to detect hacked weapons before they hold it on their hands, like, having hacked gun but not taken out yet, i want to know how, if anyone can help
Re: ****** weapons detecter -
iKevin - 15.05.2016
Quote:
Originally Posted by D3vin
I have a stock of weapons that are being held by the player
(stock Haveweapon(playerid, weaponid)
though, hacked weapons can be detectable only when they are held by a player in his hand, otherwise I cant detect it, any chances to improve this? I want to detect hacked weapons before they hold it on their hands, like, having hacked gun but not taken out yet, i want to know how, if anyone can help
|
If they hack weapons, they will appear in their hands when spawning and if you have a good anticheat it can detect it that time.
Re: ****** weapons detecter -
D3vin - 15.05.2016
No mate, I have ****** to test hacks with it on the script, i enable weapons cheat then choose which weapons, yet it doesnt spawn them on hand until i press "A" or "E" or mouse wheel up, then get banned, any other ways to detect them before they spawn?
Re: ****** weapons detecter -
KevinReinke - 15.05.2016
What's the point in the first place? If they can't use weapons they hacked, then leave it like that. It's pretty much more performance friendly than a timer (which isn't required because they can't use weapons they hack anyway).
Anyway, create a timer that repeats and use GetPlayerWeaponData and compare it to your array.