09.02.2014, 15:30
If someone is going to use YSI that is going to cause problems I had to hook this callback before YSI is included it looks like this. Keep in mind this was used before YSI was included so you'll probably have to do some preprocessor checks to determine how it should be hooked.
Keep in mind that this is to hook before YSI is included I have not tested it after YSI is included in which case you should use y_hooks for hooking instead.
Keep in mind that this is to hook before YSI is included I have not tested it after YSI is included in which case you should use y_hooks for hooking instead.
pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
OnPlayerClickPlayerTD(playerid, PlayerText:playertextid);
return 1;
}
#if defined _ALS_OnPlayerClickPlayerTD
#undef OnPlayerClickPlayerTextDraw
#else
#define _ALS_OnPlayerClickPlayerTD
#endif
#define OnPlayerClickPlayerTextDraw OnPlayerClickPlayerTD