SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 07/10/2013, 05:57 AM   #1
DanDRT
High-roller
 
DanDRT's Avatar
 
Join Date: Apr 2012
Posts: 1,346
Reputation: 227
Default (Online) Hook to Callback's and Fuction's

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.
DanDRT is offline   Reply With Quote
Old 07/10/2013, 06:48 AM   #2
Jankingston
Banned
 
Join Date: Oct 2013
Location: New York, Albany.
Posts: 400
Reputation: 30
Default Re: (Online) Hook to Callback's and Fuction's

good job, +rep
Jankingston is offline   Reply With Quote
Old 07/10/2013, 06:51 AM   #3
DanDRT
High-roller
 
DanDRT's Avatar
 
Join Date: Apr 2012
Posts: 1,346
Reputation: 227
Default Respuesta: Re: (Online) Hook to Callback's and Fuction's

Quote:
Originally Posted by Jankingston View Post
good job, +rep
thanks!
DanDRT is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tool/Web/Other] (Online) Hook para Callback's e Fuction's DanDRT Lanšamentos/Releases 14 06/10/2013 09:21 PM
[Tutorial] Hooking CallBack(s) - How to Hook any callback Swimor Tutorials 6 19/10/2012 09:32 PM


All times are GMT. The time now is 11:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.