AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   FM_Use doesn't work?? (https://forums.alliedmods.net/showthread.php?t=8963)

More 01-01-2005 11:35

FM_Use doesn't work??
 
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

Johnny got his gun 01-02-2005 06:43

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.

larnk 02-11-2005 05:45

I got this problem too...
even if useing a hostage. FM_Use is not been forward..

XxAvalanchexX 02-11-2005 16:02

What mod did you test it in, More? I know it doesn't get properly called in TS, but have never tried in CS.

larnk 02-12-2005 10:54

I tried in couter cstrike 1.6


All times are GMT -4. The time now is 19:17.

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