SA-MP Forums Archive
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)
+--- Thread: ANTI CHEAT (/showthread.php?tid=608168)



ANTI CHEAT - Sirop - 28.05.2016

Hello,

Currently I train to create a server and I would like to put an anti cheat but the problem such as the server gives money to the player but his banished the players


Re: ANTI CHEAT - andrejc999 - 28.05.2016

You should read everything about anticheat that you download and if it's not working then just make your own anticheat it's quite simple for like money cheats and stuff...


Re: ANTI CHEAT - CodeStyle175 - 28.05.2016

It's not even anticheat, you just dont use gta sa money function and use your own variable example
new pmoney[MAX_PLAYERS];


Re: ANTI CHEAT - andrejc999 - 28.05.2016

So Sirop if you didn't understand, you should use GivePlayerMoney(playerid); function for giving money but if you want to use a variable then you need to make a timer so it sets players money to that variable... + it can check if it's different so it kicks the player for cheating but in that case you should be sure that every time your server gives a player some money it adds that amount to pmoney variable...


Re: ANTI CHEAT - Sirop - 28.05.2016

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
new pmoney[MAX_PLAYERS];
I use it

pInfo[playerid][HandMoney] += -input;


For anti cheat I do like that? How can I do to make it detected the cheat?

OnPlayerUpDate

GivePlayerMoney(playerid, imput);
Ban(playerid);