Anti money hack
#1

helloo

i have this function to give players moeny
PInfo[playerid][Money];


and this is my current anticheat but not working

PHP код:
public RandomTimer()
{
    for(new 
ii<MAX_PLAYERSi++)
    {
        if(
GetPlayerMoney(i) != PInfo[i][Money])//Money/Cash anti-cheat
        
{
            
ResetPlayerMoney(i);
            
GivePlayerMoney(i,PInfo[i][Money]);
        }
    }

i also need to make it bannable
how to do it ??
Reply
#2

You did good, but you need start that timer, make new giveplayermoney and getplayermoney function, use those everytime you want to do something with money and if you want to be this anti-moneyhack thing bannable, just add it after it detects your money variable doesn't = player money function.
And i suggest using GetPlayerPoolSize(); function, not MAX_PLAYERS. GetPlayerPoolSize() gets max playerid currently on the server, and MAX_PLAYERS is your players limit.
Reply
#3

can u show me an example of making it
a ma noob
Reply
#4

anyone ?
Reply
#5

hahahahahaha
Reply
#6

I recommend you use something along the lines of Nex Anti-Cheat, here's a link.

https://sampforum.blast.hk/showthread.php?tid=579963
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)