Raised This Month: $ Target: $400
 0% 

Library - Sentry Gun


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-25-2011 , 10:58   Re: Library - Sentry Gun
Reply With Quote #8

Quote:
Originally Posted by F0RCE View Post
omg .

Trying this now . I will update this post with SMA when I'm done , so someone will check it

PHP Code:
register_forward(FM_Think,g_sClassName,"think_Dzialko"); 
Code:
new ForwardId; ForwardId = register_forward( FM_Think, "ThinkFunc" ); // ... unregister_forward( FM_Think, ForwardId );

If you plan on spawning several sentrys, unregistering the think would result in the other sentrys not working. So again, disregard from what I said about disabling the hook, just hook the think with fakemeta as following:

Code:
register_forward(FM_Think, "think_Dzialko");

And you're good to go. Won't throw an error.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 10-25-2011 at 11:19. Reason: Typo
Xellath is offline
 



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 14:23.


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