Weapon anti cheat - 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: Weapon anti cheat (
/showthread.php?tid=457407)
Weapon anti cheat -
iJumbo - 11.08.2013
How to avoid ban when player exit from a vehicle?
Sometimes that happend, seems playere receive some bad weapons
Re: Weapon anti cheat -
Alternative112 - 11.08.2013
I would like to know the cause of this, too. You shouldn't ban anybody for weapon hax immediately unless you are absolutely sure your detection is 100% accurate (very very hard to do). If you detect someone has a bad weapon, just send a warning to admins, or at worst kick them.
Keep this in mind:
Quote:
Originally Posted by SAMP Wiki
Note: When the player state is passenger, the function returns the weapon used by the player before they entered the vehicle. If a cheat is used to spawn a weapon inside a vehicle, this function will not report it.
|
EDIT: forgot to mention, that's a note from the GetPlayerWeapon page, which I am presuming you use at some point during the weapon check.