Raised This Month: $ Target: $400
 0% 

how to use RegisterHam


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-05-2013 , 05:36   Re: how to use RegisterHam
Reply With Quote #1

Code:
public plugin_init( )
        //                Offset,        ClassName, Function,               Post
        RegisterHam( Ham_Spawn, "player", "OnPlayerSpawn_Post", 1 );
        // Base Hook: Hook Entity when it's spawned
Code:
public plugin_init( )
        //                     Offset,                     Function,                 Post
        register_forward( FM_ClientPutInServer, "OnClientPutInServer", 0 );
        // Engine Function: Hook when player puts in the server
Code:
register_touch same as FM_Touch
register_think same as FM_Think

Last edited by TheDS1337; 06-05-2013 at 06:33.
TheDS1337 is offline
1023168216
Member
Join Date: Jun 2013
Location: Tokyo
Old 06-09-2013 , 11:00   Re: how to use RegisterHam
Reply With Quote #2

About "register_touch"and"register_think"??? can you please give me a example?
And i also wanna get some explain about something in "fakemeta_const.inc"
for example:what does "FM_CmdStart" mean???
i see it in this:register_forward(FM_CmdStart,"fw_CmdStar t")
1023168216 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-09-2013 , 19:11   Re: how to use RegisterHam
Reply With Quote #3

Quote:
Originally Posted by 1023168216 View Post
About "register_touch"and"register_think"??? can you please give me a example?
And i also wanna get some explain about something in "fakemeta_const.inc"
for example:what does "FM_CmdStart" mean???
i see it in this:register_forward(FM_CmdStart,"fw_CmdStar t")
All of your questions are already answered elsewhere. Search.
__________________
fysiks is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 16:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode