SA-MP Forums Archive
Anti-Hack - 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-Hack (/showthread.php?tid=375334)



Anti-Hack - kbalor - 06.09.2012

Hey guys I was looking for a Anti-MONEY hack a effective and simple one for 0.3e. I found some anti-money hack but it's outdated, and some are patched by new s0b3!t (You know what I mean) Also If I do stunts bonus the money must be counted and in reaction test and killing.

I add this on my server
https://sampforum.blast.hk/showthread.php?tid=71136

But after I do stunts bonuses it resets so zero.

And lastly let's say if my money is 3000 then I used a money cheat it should return to 3000. after 2 seconds.


Re: Anti-Hack - zT KiNgKoNg - 06.09.2012

you need to allow it for the script option GivePlayerMoney(playerid, ammount);
dont ask me how to do it cuz i dont even know but i hope this helped


Re: Anti-Hack - kbalor - 06.09.2012

I tried this code

pawn Код:
stock GivePlayerCash(playerid,Contia)
{
GivePlayerMoney(playerid,Contia);
SetPVarInt(playerid,"grana",GetPlayerMoney(playerid));
SetPVarInt(playerid,"AntiMH",10);
}
forward CheckGrana();
public CheckGrana()
{
    for(new to_dos = 0;to_dos < MAX_PLAYERS;to_dos++)//todos players
    {
        if(GetPVarInt(to_dos,"AntiMH") == 10)
        {
        SetPVarInt(to_dos ,"AntiMH",0);
        return 0;
        }
    if(GetPlayerMoney(to_dos) < GetPVarInt(to_dos,"grana")) SetPVarInt(to_dos,"grana",GetPlayerMoney(to_dos));
    while(GetPlayerMoney(to_dos) <= GetPVarInt(to_dos,"grana"))  return 0;
    /*
   //ban
    */

    }
    return 1;
}
But do you think it will reset my money to original? Like I said

"And lastly let's say if my money is 3000 then I used a money cheat it should return to 3000"


Re: Anti-Hack - leonardo1434 - 06.09.2012

instead of just copy it, study it, and understand it to make your own. this is the best way to learn, not copying.

Months and months you still haven't learned nothing, time is now to make your own stuff.