[Tool/Web/Other] (Online) Hook to Callback's and Fuction's - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (
https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] (Online) Hook to Callback's and Fuction's (
/showthread.php?tid=468218)
(Online) Hook to Callback's and Fuction's -
DanDRT - 07.10.2013
Link
Click here
Code
http://pastebin.com/5JCSR2da
Made in HTML!
Example Hook
Callback
pawn Code:
public OnPlayerConnect(playerid)
{
// your code here...
#if defined Ips_OnPlayerConnect
return Ips_OnPlayerConnect(playerid);
#else
return true;
#endif
}
#define OnPlayerConnect Ips_OnPlayerConnect
#if defined Ips_OnPlayerConnect
forward OnPlayerConnect(playerid);
#endif
Fuction
pawn Code:
stock Ips_GivePlayerMoney(playerid, value)
{
// your code here...
return true;
}
#if defined _ALS_GivePlayerMoney
#undef GivePlayerMoney
#else
#define _ALS_GivePlayerMoney
#endif
#define GivePlayerMoney Ips_GivePlayerMoney
Thanks.
Re: (Online) Hook to Callback's and Fuction's -
Jankingston - 07.10.2013
good job, +rep
Respuesta: Re: (Online) Hook to Callback's and Fuction's -
DanDRT - 07.10.2013
Quote:
Originally Posted by Jankingston
good job, +rep
|
thanks!