[HELP] About Money Hack +Rep 1 !!!
#1

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 !!
Reply
#2

Код:
// 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?
Reply
#3

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

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

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
Reply
#5

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
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)