OnPlayerDissconnect hacked weapons, HELP !! - 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: OnPlayerDissconnect hacked weapons, HELP !! (
/showthread.php?tid=607176)
OnPlayerDissconnect hacked weapons, HELP !! -
D3vin - 15.05.2016
Okay; I'm using kinda' an anticheat of my own edition, I edit it always and I want to add a feature like
when anticheat detects a desynced or hacked gun, I want the script to remove that desynced gun from the player when he attempts to log off? how can I remove the specific desynced / hacked weapon from the player hand? all I know is ClearGuns(playerid); and by that It'll remove all of the player's guns and I dont want him to unfairly lose his other guns, I want to remove the desynced gun instead
I already have "stock TakeWeapon(playerid, pgun) for each weapon ID but how exactly am I going to define the gun as hacked so it can automaticly get removed?