SA-MP Forums Archive
[FilterScript] Anti Money Hack -GMADDON - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti Money Hack -GMADDON (/showthread.php?tid=173968)



Anti Money Hack EFECIENT - ipsBruno - 04.09.2010



Introduction
It is an Anti-Money Hack very efficient and simple does not require great knowledge to put it

Using

OBS: It Version is Using Array

[b]In Final GameMode Add/b]:



pawn Code:
// 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;
}

The End


Re: Anti Money Hack -GMADDON - mrcoolballs - 05.09.2010

nice work, i get "the error unknown symbol slots also where do i put it?


Respuesta: Anti Money Hack -GMADDON - ipsBruno - 15.09.2010

Top of GameMode:

#define SLOTS NUMBER_OF_SLOTS

Sorry, i uped Topic...


Re: Anti Money Hack -GMADDON - Kwarde - 15.09.2010

Nice Script
7.5/10


Re: Anti Money Hack -GMADDON - MrDeath537 - 15.09.2010

Hmmm, when you define a macro, put the "%Number" into (), example:
pawn Code:
#define HELLO_WORLD(%1) SendClientMessage((%1), 0xFFFFFFFF, "Hello!")



Re: Anti Money Hack -GMADDON - wups - 16.09.2010

Quote:

#define OnGameModeInit SetTimer("AntiMH",1000,true);

R u serious?


Re: Anti Money Hack -GMADDON - titanak - 17.09.2010

tryd this and this deleted all players money lol and tehir money too who wasnt hackers.


Re: Anti Money Hack -GMADDON - ♣RОЗK♣ - 17.09.2010

Nice FS, Seems to work.


Respuesta: Anti Money Hack -GMADDON - ipsBruno - 18.09.2010

not Work? here work..

pawn Code:
public OnGameModeInit()
{
    SetTimer("AntiMH",TIMER_MH,true);
    return true;
}
#define LoopPlayers(%0,%1) for(new %0 = 0; %0 < %1;++ %0) if(IsPlayerConnected(%0) && !IsPlayerNPC(%0))
#define TIMER_MH 1500 //- [Milisegundos]-//
#define SLOTS 43 //- Nъmber of Slots -//
forward AntiMH();
public AntiMH()
{
    LoopPlayers(i,SLOTS)
    {
        if(Money[i] < GetPlayerMoney(i))
        {
                 GivePlayerMoneyEx(i,Money[i]);
        }
    }
    return true;
}
stock GivePlayerMoneyEx(playerid,contia)
{
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,contia);
    return Money[playerid]+=contia;
}
Change GivePlayerMoney for GivePlayerMoneyEx in GM


Re: Anti Money Hack -GMADDON - titanak - 18.09.2010

uhh okai