28.12.2012, 12:01
Oh okay, been there done that. lol
Here's how you hook a callback also:
Then in gamemode.pwn:
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();
pawn Код:
public OnGameModeInit() {
return true;
}