Raised This Month: $ Target: $400
 0% 

FM_PlayerPreThink


Post New Thread Reply   
 
Thread Tools Display Modes
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++
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-27-2006 , 10:40  
Reply With Quote #2

Of course you can register two of the same...but why would you? Use a switching system or something.

Post does not gain CPU, it takes the same CPU as a pre, its just sent AFTER MM returns.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
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 05:12.


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