Hooking OnPlayerClickTextDraw in an include - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hooking OnPlayerClickTextDraw in an include (
/showthread.php?tid=328995)
Hooking OnPlayerClickTextDraw in an include -
MP2 - 26.03.2012
YSI's y_hooks doesn't seem to support it yet. I guess it has to be added by ******? It's an 0.3e callback. Is there an alternative to hook it?
Re: Hooking OnPlayerClickTextDraw in an include -
TheArcher - 26.03.2012
Use the classic mode that is _ALS_ .
Example:
pawn Код:
#if defined _ALS_OnFilterScriptInit
#undef OnFilterScriptInit
#else
#define _ALS_OnFilterScriptInit
#endif
#define OnFilterScriptInit Function_OnFilterScriptInit
Re: Hooking OnPlayerClickTextDraw in an include -
MP2 - 26.03.2012
Can someone just give me the ENTIRE code with a comment where I should put my code that I want to be called on the callback? I've been trying to do this SIMPLE thing for over 2 hours now.