[Include] Disable Ammunation (damm.inc)
#5

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 Код:
#include < YSI/y_hooks >
pawn Код:
Hook:FileName/* name from .inc */_Callback/* A name from a callback. Ex: OnPlayerConnect( playerid ) */
{
    // Code
}
Reply


Messages In This Thread
Disable Ammunation (damm.inc) - by MP2 - 01.02.2012, 08:57
Re: Disable Ammunation (damm.inc) - by Niko_boy - 01.02.2012, 11:22
Re: Disable Ammunation (damm.inc) - by DRIFT_HUNTER - 01.02.2012, 12:34
Re: Disable Ammunation (damm.inc) - by MP2 - 01.02.2012, 12:56
Re: Disable Ammunation (damm.inc) - by Konstantinos - 01.02.2012, 13:09
Re: Disable Ammunation (damm.inc) - by Reklez - 23.03.2012, 03:53
Re: Disable Ammunation (damm.inc) - by Hansolue - 23.03.2012, 09:34
Re: Disable Ammunation (damm.inc) - by Ryan_Obeles - 21.05.2013, 15:13
Re: Disable Ammunation (damm.inc) - by DiGiTaL_AnGeL - 23.05.2013, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)