#4

Oh okay, been there done that. lol

Here's how you hook a callback also:

pawn Код:
public OnGameModeInit() {
    return CallLocalFunction("OnGameModeInitEx", "");
}

#if defined _ALS_OnGameModeInit
    #undef OnGameModeInit
#else
    #define _ALS_OnGameModeInit
#endif
#define OnGameModeInit OnGameModeInitEx
forward OnGameModeInitEx();
Then in gamemode.pwn:

pawn Код:
public OnGameModeInit() {
    return true;
}
Reply


Messages In This Thread
Hook - by dr.lozer - 28.12.2012, 11:52
Re: Hook - by Kreatyve - 28.12.2012, 11:54
Re: Hook - by dr.lozer - 28.12.2012, 11:56
Re: Hook - by Kreatyve - 28.12.2012, 12:01
Re: Hook - by dr.lozer - 28.12.2012, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)