SA-MP Forums Archive
Antihack detect problem - 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: Antihack detect problem (/showthread.php?tid=566345)



Antihack detect problem - Wolfey20 - 05.03.2015

I am trying to create a anti hack system, this is against money, but its saying he is hacking even when hes not
pawn Код:
foreach(Player, i)
{
    if(GetPlayerMoney(i) >= PlayerInfo[i][pMoney])
    {
        format(string, sizeof(string), "(HACK) %s is using money hacks.", name);
        SendAdminMessage(1, COLOR_RED, string);
    }
}
Should check if their money is higher than pMoney


Re: Antihack detect problem - CalvinC - 05.03.2015

>=
Will check if it's higher than OR equal to something, you should only use > to check if it's higher than something.
= should be used to detect if it's equal to ( == ) or not equal to ( != ) in an if.


Re: Antihack detect problem - Wolfey20 - 05.03.2015

Thanks i thought you should use it like != by doing >=


Re: Antihack detect problem - ATGOggy - 05.03.2015

This will report players who used Vending machines or ammuntaions.


Re: Antihack detect problem - CalvinC - 05.03.2015

Why would it do that?
It checks if his client money is higher than his server pMoney value, and you don't gain money from vending machines or ammunation.


Re: Antihack detect problem - ATGOggy - 05.03.2015

What if a player stunt?


AW: Re: Antihack detect problem - Kaliber - 05.03.2015

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
What if a player stunt?
Should be disabled on reallife server


Re: AW: Re: Antihack detect problem - ATGOggy - 05.03.2015

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Should be disabled on reallife server
So, can we prevent moneyhackers with this?


Re: Antihack detect problem - Wolfey20 - 05.03.2015

I disabled stunt bonus in my script dont worry


AW: Re: AW: Re: Antihack detect problem - Kaliber - 05.03.2015

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
So, can we prevent moneyhackers with this?
Actually you should disable it on your stunt server too, because its buggy.

e.g. you can drive ("fly") the mount chillard down...and get sooo much mony..and you can do that 3 times and you are rich (without cheating).

So you should just script the stuntbonus feature