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: Anticheat (
/showthread.php?tid=89349)
Anticheat -
Zeromanster - 01.08.2009
Hello,
Could you tell me how to detect if a player spawned a gun ? I don't want to forbid players from using certain types of guns i want them to use them as long as they bought them and not spawned them (cheated).
Has anyone got an idea ? Thank you very much
Re: Anticheat -
DarkClone - 02.08.2009
Don't think it's possible to detect if they buy a gun from a ammo-Nation
Re: Anticheat -
CracK - 02.08.2009
You can replace original GTA ammunation with scripted one. I have one on my server(check signature).
Re: Anticheat -
Zeromanster - 02.08.2009
Quote:
Originally Posted by [LOGS
Davis ]
Don't think it's possible to detect if they buy a gun from a ammo-Nation
|
They don't buy from ammo-nation, i use GivePlayerWeapon only. So i want them to be banned if they don't get their wepons from GivePlayerWeapon function
Re: Anticheat -
CracK - 02.08.2009
Store weapon data in arrays. Use
this as an example.
Re: Anticheat -
Zeromanster - 02.08.2009
Quote:
Originally Posted by CrαcK
|
Thats something totaly different, theres no way of creating serverside weapons :P
Re: Anticheat -
Joe Staff - 02.08.2009
Why not? Keep a variable index that keeps track of what weapons a player has bought/picked up. That's what I do.
Re: Anticheat -
Zeromanster - 02.08.2009
Quote:
Originally Posted by Joe Staff
Why not? Keep a variable index that keeps track of what weapons a player has bought/picked up. That's what I do.
|
Could you give me an example code please ?
Re: Anticheat -
CracK - 02.08.2009
Quote:
Originally Posted by Zeromanster
Quote:
Originally Posted by CrαcK
|
Thats something totaly different, theres no way of creating serverside weapons :P
|
No, that's
exactly what are you looking for.
Re: Anticheat -
Zeromanster - 02.08.2009
Please help, i need some little example to get me started, please