SA-MP Forums Archive
[HELP] About Money Hack +Rep 1 !!! - 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: [HELP] About Money Hack +Rep 1 !!! (/showthread.php?tid=466502)



[HELP] About Money Hack +Rep 1 !!! - VenomMancer - 28.09.2013

Hello
Who Can, make or give to me the Anti-Money hack system ?
because i really need it.
my big problem on my server is Money Hack.
so please help me

Btw, i am using SATDM_v9 .

Thanks +Rep 1 !!


Re: [HELP] About Money Hack +Rep 1 !!! - zrelly - 28.09.2013

Код:
// OnGameModeInit -//

SetTimer("CheckGrana",1500,true);

//- Final GameMode -//

stock GivePlayerCash(playerid,Contia)
{
    GivePlayerMoney(playerid,Contia);
    SetPVarInt(playerid,"grana",Contia);
    SetPVarInt(playerid,"AntiMH",10);
    return true;
}

forward CheckGrana();
public CheckGrana()
{
    for(new i = 0;i < MAX_PLAYERS;i++)
    {
        if(GetPVarInt(i,"AntiMH") == 10) 
        {
            SetPVarInt(i ,"AntiMH",0);
            return 0;
        }
        if(GetPlayerMoney(i) < GetPVarInt(i,"grana"))
        {
            SetPVarInt(i,"grana",GetPlayerMoney(i));
        }
        if(GetPlayerMoney(i) > GetPVarInt(i,"grana"))   
        {
            ResetPlayerMoney(i);
            GivePlayerMoney(i,GetPVarInt(i,"grana"));
        }
    }
    return true;
}
Try this?


Re: [HELP] About Money Hack +Rep 1 !!! - SAMProductions - 28.09.2013

Try This One (Doesn't Tested Yet, Try it Yourself),

pawn Код:
new AntiBadCash=GetPlayerMoney(playerid);
if(AntiBadCash>=/*Maximum Money, Example: ("10000001")*/) return ResetPlayerMoney(playerid);



Re: [HELP] About Money Hack +Rep 1 !!! - HolyScripter - 16.10.2013

You need to convert all GivePlayerMoney to GivePlayerCash first thing you must to do
is Create new stock , not only giveplayercash you can change it to all what you want like
BeriPlayerUang or GivePlayerDollars like what you want

Quote:

stock GivePlayerCash(playerid, money)
{
SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash")+money);
GivePlayerMoney(playerid, money);
return 1;
}

After this you must convert all GivePlayerMoney to GivePlayerCash , You can use replace for it

SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash")+money); << This for your variable , if your variable is money or dollar change "Cash" to Money or Dollar , Sorry for my bad english CMIIW

if you want fast replace

find GivePlayerMoney(playerid,
replace with GivePlayerCash(playerid, after it apply to all script what you got, sorry for my bad english iam indonesian


Re: [HELP] About Money Hack +Rep 1 !!! - Blademaster680 - 17.10.2013

Try and use server sided money. Really hard to hack because most hacks hack the client sided money not the server sided. Or you can take a look at this anti cheat plugin http://forum.sa-mp.com/showthread.ph...er+sided+money


Re: [HELP] About Money Hack +Rep 1 !!! - VenomMancer - 18.10.2013

Quote:
Originally Posted by Blademaster680
Посмотреть сообщение
Try and use server sided money. Really hard to hack because most hacks hack the client sided money not the server sided. Or you can take a look at this anti cheat plugin http://forum.sa-mp.com/showthread.ph...er+sided+money
I alredy used it

Thanks all for your help