[Include] Simples anti-MoneyHack
#10

Quote:
Originally Posted by paulor
View Post
Interessante!

@Edit
Eu creio que poderia bugar isso.

pawn Code:
public OnPlayerDisconnect(playerid, reason) {
        KillTimer(_timerp[playerid]);
        if(funcidx("lamh_OnPlayerDisconnect") != -1)
        {
                return CallLocalFunction("lamh_OnPlayerDisconnect", "i", playerid);
        }
        return 1;
}
 
#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect lamh_OnPlayerDisconnect
forward lamh_OnPlayerDisconnect(playerid);
mas aqui tbm compila de boa, tente testar usando outro FS ouGM

pois vc define OnPlayerDisconnect para lamh_OnPlayerDisconnect, sendo que lamh_OnPlayerDisconnect nгo possui os msm parametros do OnPlayerDisconnect. O correto seria.

pawn Code:
public OnPlayerDisconnect(playerid, reason) {
        KillTimer(_timerp[playerid]);
        if(funcidx("lamh_OnPlayerDisconnect") != -1)
        {
                return CallLocalFunction("lamh_OnPlayerDisconnect", "ii", playerid, reason);
        }
        return 1;
}
 
#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect lamh_OnPlayerDisconnect
forward lamh_OnPlayerDisconnect(playerid, reason);
nossa passou despercebido, obrigado por avisar, vou editar ali


@Alisson

tente simplesmente deixar toda essa parte como comentбrio
pawn Code:
/*
                ANTI MONEY HACK
                BY LUCAS_ALEMAO
                      OU
                  [iPs]Lucas



#if defined _lamh_included
        #endinput
#endif
#define _lamh_included

#pragma library lamh*/
Reply


Messages In This Thread
Simples anti-MoneyHack - by Lucas_Alemao - 01.05.2012, 01:49
Re: Simples anti-MoneyHack - by 'Duallity - 01.05.2012, 02:04
Re: Simples anti-MoneyHack - by Caio_Freeze - 01.05.2012, 02:08
Re: Simples anti-MoneyHack - by dPlaYer_ - 01.05.2012, 02:37
Re: Simples anti-MoneyHack - by 4LiSs0N - 01.05.2012, 12:21
Re: Simples anti-MoneyHack - by paulor - 01.05.2012, 13:46
Re: Simples anti-MoneyHack - by Edu33 - 01.05.2012, 13:48
Re: Simples anti-MoneyHack - by 4LiSs0N - 01.05.2012, 14:06
Re: Simples anti-MoneyHack - by paulor - 01.05.2012, 14:09
Re: Simples anti-MoneyHack - by Lucas_Alemao - 01.05.2012, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)