Raised This Month: $ Target: $400
 0% 

EnableHamForward for FM forwards


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 08-07-2011 , 11:08   EnableHamForward for FM forwards
Reply With Quote #1

I am using this for Ham_TakeDamage:

PHP Code:
new HamHook:g_iHhTakeDamage;

g_iHhTakeDamage RegisterHamHam_TakeDamage"player""FwdPlayerDamage" );

EnableHamForwardg_iHhTakeDamage );

DisableHamForwardg_iHhTakeDamage ); 
Now how can I use that for FM_AddToFullPack?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 08-07-2011 , 11:17   Re: EnableHamForward for FM forwards
Reply With Quote #2

From LuciaHallucination:

PHP Code:
new ForwardAddToFullPackPre
new ForwardAddToFullPackPost
new ForwardCmdStart

handleJoiningFirstPersonView
(id)
{    
    
OnFirstPersonView[id] = true
    
    
if(!OnFirstPersonViewN++)
    {
        
ForwardAddToFullPackPre register_forward(FM_AddToFullPack,"addToFullPackPre",0);
        
ForwardAddToFullPackPost register_forward(FM_AddToFullPack,"addToFullPackPost",1)
        
ForwardCmdStart register_forward(FM_CmdStart,"cmdStart")
    }

__________________

padilha007 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-07-2011 , 12:22   Re: EnableHamForward for FM forwards
Reply With Quote #3

To disable it, use: unregister_forward()
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
bibu
Veteran Member
Join Date: Sep 2010
Old 08-07-2011 , 12:52   Re: EnableHamForward for FM forwards
Reply With Quote #4

Yep works perfectly, thanks to you both.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 03:27.


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