SA-MP Forums Archive
[NEW] Money Anti-Cheat idea (help with writing) - 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: [NEW] Money Anti-Cheat idea (help with writing) (/showthread.php?tid=414918)



[NEW] Money Anti-Cheat idea (help with writing) - Phil_Cutcliffe - 10.02.2013

So everyone has a problem with Anti-Cheat right?

I'm getting pretty good with this scripting stuff and starting to understand how it is working. But I have an idea for
an Anti-Money cheat!

Ok so here is how it will work

IF getplayermoney OR getplayercash SENT "THIS IS OK" to the ANTI-CHEAT the ANTI-CHEAT will allow this to happen
and do nothing about it.

IF getplayermoney OR getplayercash DID NOT SEND "THIS IS OK" to the ANTI-CHEAT the ANTI-CHEAT will NOT allow this to happen and reverse the money (like normal anti cheats just if it was +500 it will -500)

I'm not sure if I explained myself correctly but if ANYONE knows how I can write this in code then we have ourselves a beauty of an Anti-Cheat!

That has gotta be +1 right there!!


Re: [NEW] Money Anti-Cheat idea (help with writing) - Jay_ - 10.02.2013

Basically what you're implying is an idea that has already been done: server-side money. Have a search around the showroom for some examples.


Re: [NEW] Money Anti-Cheat idea (help with writing) - Phil_Cutcliffe - 10.02.2013

Well no this hasn't already been done because server-side money is totaly different to what I'm saying. I'm saying ANY function IG that is sending "THIS IS OK" to the anti-cheat money detector it will not detect it.. ANYTHING else it will detect

Do you understand where this idea is totaly different?


Re: [NEW] Money Anti-Cheat idea (help with writing) - Babul - 10.02.2013

this could (and already has) be done via f.ex. GVars: increment the SetPVarInt(playerid,"Money",GetPVarInt(playedrid," Money"));, and by the "host" AC script, read out the PVar again, and set the player cash accordingly.
given that, it implicates the same concept: security.