[Help] Money 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Money Anti Cheat (
/showthread.php?tid=212926)
[Help] Money Anti Cheat -
=Ebrala= - 18.01.2011
who can give me good money anti cheat ?
Re: [Help] Money Anti Cheat -
DarrenThayer - 18.01.2011
In order to a make anti-money hack system you need to use server-side money.
This means that you create a varialbe such as this at the top of your script:
pawn Код:
new PlayerMoney[MAX_PLAYERS];
Now you basicly store the ammount of money that everyone has in this variable..... The way to do this is by first of all setting the money to the correct ammount when they log in... Then create a Timer on your script of 1 second or something that does this
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++){
ResetPlayerMoney(i);
SetPlayerMoney(i) = PlayerMoney(i);
}
That might not work exactly, but thats the basic idea.
Re: [Help] Money Anti Cheat -
=Ebrala= - 18.01.2011
thanks