Raised This Month: $ Target: $400
 0% 

FM_Use doesn't work??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
More
Member
Join Date: Nov 2004
Location: Internet
Old 01-01-2005 , 11:35   FM_Use doesn't work??
Reply With Quote #1

I have a little problem.
I used FM_Use but it doesn't seems to work.

here's my code so far:
Code:
#include <amxmodx> #include <fakemeta> #include <engine> #include <amxmisc> public plugin_init() {   register_plugin("abc", "0.1", "abc")   register_forward(FM_Use, "forward_use") } public forward_use(user, used) {   if ((user > 0) && (used > 0)) {     client_print(0, print_chat, "A button has been used")   }   return FMRES_IGNORED }

the variables user and used I need for later use.

can somebody tell me what I made wrong?

Edit: other fakemeta forwards are working well
More is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 01-02-2005 , 06:43  
Reply With Quote #2

Not sure here but a guess is "use" is called when someone uses something ingame, not necessarily when someone presses a button. Try touching a hostage or something like that.
Johnny got his gun is offline
larnk
Member
Join Date: Dec 2004
Old 02-11-2005 , 05:45  
Reply With Quote #3

I got this problem too...
even if useing a hostage. FM_Use is not been forward..
larnk is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-11-2005 , 16:02  
Reply With Quote #4

What mod did you test it in, More? I know it doesn't get properly called in TS, but have never tried in CS.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
larnk
Member
Join Date: Dec 2004
Old 02-12-2005 , 10:54  
Reply With Quote #5

I tried in couter cstrike 1.6
larnk 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 19:17.


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