Raised This Month: $ Target: $400
 0% 

FM_PlayerPreThink


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 04-27-2006 , 09:27   FM_PlayerPreThink
Reply With Quote #1

Is it possible to register 2 foewards of the same type like this?
Dont have a test server at the moment....
EDIT: What does post do, can i gain some cpu with it?

Code:
new fmid[2] public plugin_init() {   fmid[0] = register_forward(FM_PlayerPreThink, "forward_playerprethink1")   fmid[1] = register_forward(FM_PlayerPreThink, "forward_playerprethink2") } public forward_playerprethink1(id) {   //something   return FMRES_IGNORED } public forward_playerprethink2(id) {   //something   return FMRES_IGNORED } public stop1() {   unregister_forward (FM_PlayerPreThink, fmid[0], 0) } public stop2() {   unregister_forward (FM_PlayerPreThink, fmid[1], 0) }
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
 



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 05:12.


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