[Include] w!hook - (beta)
#4

Wiliam, aqui um jeito de nгo precisar de STOCK::

pawn Код:
#define hookfunc%1(%2) \
                        %1(%2)

#define call%1(%2) \
            %1_hooked(%2)

hookfunc func() {
    print("teste a");
   
    call func();
}

#define stock%1(%2) \
            %1_hooked(%2)

stock func() {
    print("teste b");
}

quando ele usa

stock func() mal ele sabe que estб fazendo stock func_hooked(). Logo, estarб hookeando sem mudar todas stocks atuais do GM

Simples



pawn Код:
main() {

   func();
}
vai chamar

func() que vai chamar a func_hooked()

e resultar em:

PHP код:
[17:46:50teste a
[17:46:50teste b 
Reply


Messages In This Thread
w!hook - (beta) - by WLSF - 08.10.2013, 20:20
Re: w!hook - (beta) - by ipsBruno - 08.10.2013, 20:25
Re: w!hook - (beta) - by PT - 08.10.2013, 20:36
Re: w!hook - (beta) - by ipsBruno - 08.10.2013, 20:38
Re: w!hook - (beta) - by ipsBruno - 08.10.2013, 20:42
Re: w!hook - (beta) - by shittt - 08.10.2013, 20:50
Re: w!hook - (beta) - by ipsBruno - 08.10.2013, 21:10
Re: w!hook - (beta) - by Juniiro3 - 08.10.2013, 21:11
Re: w!hook - (beta) - by ipsBruno - 08.10.2013, 21:15
Re: w!hook - (beta) - by TheKoDaK - 08.10.2013, 21:33
Re: w!hook - (beta) - by Falcon. - 08.10.2013, 21:38
Re: w!hook - (beta) - by smiiir - 08.10.2013, 21:40
Re: w!hook - (beta) - by WLSF - 08.10.2013, 21:47
Re: w!hook - (beta) - by Juniiro3 - 08.10.2013, 21:49
Re: w!hook - (beta) - by WLSF - 08.10.2013, 21:51
Re: w!hook - (beta) - by Juniiro3 - 08.10.2013, 22:19
Re: w!hook - (beta) - by AlieN_. - 08.10.2013, 22:20
Re: w!hook - (beta) - by Juniiro3 - 08.10.2013, 22:24
Re: w!hook - (beta) - by AlieN_. - 08.10.2013, 23:43
Re : w!hook - (beta) - by ipsBruno - 13.10.2013, 10:05
Re: w!hook - (beta) - by WLSF - 13.10.2013, 11:40
Respuesta: w!hook - (beta) - by DanDRT - 13.10.2013, 11:44
Re: w!hook - (beta) - by PT - 13.10.2013, 12:06

Forum Jump:


Users browsing this thread: 2 Guest(s)