SA-MP Forums Archive
Weapon anticheat - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weapon anticheat (/showthread.php?tid=176583)



Weapon anticheat - thomas.. - 13.09.2010

Ok, so i have a idea. A hacker comes spawns a m4, and gets ban. BUT the non hacking players goto ammu, so the script would see that they are in the correct interior, so they wont get banned. Is that reliable?


Re: Weapon anticheat - Mauzen - 13.09.2010

I think recently there was a include or fs with that idea, you could check the showroom and go through it to see how it works.
Else search for IsPlayerInArea, GetPlayerInterior, GetPlayerWeaponData and OnPlayerUpdate/SetTimer


Re: Weapon anticheat - Memoryz - 13.09.2010

They can just go to that interior, and hack there.


Re: Weapon anticheat - Mauzen - 13.09.2010

If you also check if players are in one of the ammunation checkpoints it will be ~80% save. Most hackers wont think there is such a protection on the server and will be banned.


Re: Weapon anticheat - pmk1 - 13.09.2010

yea, so you should make your own weapons menu, and when they buy a weapon, set a variable as 1, and in your onplayerupdate/custom callback check if player has m4, and if he bought it from the store(with the variable) and if not well just ban them


Re: Weapon anticheat - thomas.. - 14.09.2010

Quote:
Originally Posted by Memoryz
Посмотреть сообщение
They can just go to that interior, and hack there.
true

but ill go with pmk1's idea


Re: Weapon anticheat - mrcoolballs - 14.09.2010

thomas why on earth would you have something like that in your signature? you seriously are one huge douche bag, people like you need to f**k off out of the forums


Re: Weapon anticheat - thomas.. - 14.09.2010

Quote:
Originally Posted by mrcoolballs
Посмотреть сообщение
thomas why on earth would you have something like that in your signature? you seriously are one huge douche bag, people like you need to f**k off out of the forums
lol nou.