Quote:
Originally Posted by DRIFT_HUNTER
Use hook method by ****** without YSI
pawn Код:
public OnGameModeInit() { // myinc OnGameModeInit return CallLocalFunction("myinc_OnGameModeInit", ""); } #if defined _ALS_OnGameModeInit #undef OnGameModeInit #else #define _ALS_OnGameModeInit #endif #define OnGameModeInit myinc_OnGameModeInit forward myinc_OnGameModeInit();
|
That the old way of usage. After ****** release the y_hook, you can simply do it as MP2 did it!
pawn Код:
Hook:FileName/* name from .inc */_Callback/* A name from a callback. Ex: OnPlayerConnect( playerid ) */
{
// Code
}