07.06.2016, 12:23
I usually do it something like
Then in includes
pawn Код:
YCMD:enter(playerid, params[], help) {
call OnPlayerEnter(playerid);
return 1;
}
pawn Код:
hook OnPlayerEnter(playerid) {
if(!IWantThisToBeCalled) return Y_HOOKS_CONTINUE_RETURN_1;
//We open a door or shit
return Y_HOOKS_BREAK_RETURN_1; //We break the chain so other callbacks are not called
}