SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 10/07/2017, 07:44 PM   #1
Join Date: Oct 2008
Posts: 1,234
Reputation: 17
Default question - anti cheat

Put me on right track, I'm thinking and can't figure out how is it possible to create anti ammo hack, not infinite one (that's comparing ammo stuff so far i know) but like anti spawn ammo, if you have gun and then you spawn like 50 ammo, how can I counter that?
Lajko1 is offline   Reply With Quote
Old 10/07/2017, 07:54 PM   #2
Join Date: May 2011
Location: Russia
Posts: 3,012
Reputation: 824
Default Re: question - anti cheat

By keeping track of the weapons you give him.
When he switches a weapon OnPlayerUpdate is triggered, then you can check whether you gave him that weapon before or not.

Is a one way to protect against weapon spawning.

You can check how other anti cheats are doing it.

EDIT: you can play with it to track ammo (if you have lagcomp on)
Kaperstone is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti cheat question. karemmahmed22 Scripting Help 2 12/09/2015 11:06 AM
Question abount Anti Cheat by Gamer_Z Raweresh Scripting Help 0 02/12/2014 09:18 AM
Anti Cheat (Question) devil shill Scripting Help 2 05/08/2014 04:42 PM
[Question]Anti-Cheat Patrick Scripting Help 9 17/12/2012 11:17 AM

All times are GMT. The time now is 11:06 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.