Raised This Month: $32 Target: $400
 8% 

about server_cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 07-22-2020 , 11:18   about server_cmd
Reply With Quote #1

hi guys. im trying to catch one plugin which is sendin server_cmd( 'amx_set_hp arg1 arg2' )
but with testing on server1 it got detected on another plugin, which is registered by:

register_clcmd( 'amx_set_hp', 'set_hp' )

and its all good with server1. but when using it on server2 it seems the 'amx_set_hp' from plugin1 is not is not sent at all (to plugin2). what can cause this problem, does anyone know it?

Thanks in advance

Edit: server1 which is good with it is 1.8.3 amxmodx, not working server2 is 1.8.2 if that matters
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 07-22-2020 at 11:34.
JocAnis is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-22-2020 , 13:25   Re: about server_cmd
Reply With Quote #2

It's probably the order of the plugins in plugins.ini. The one that's sending it should be placed before the one that's catching it.

Also, "register_clcmd" is for client commands that are executed via the client's console. If you're using "server_cmd" to execute the command, this needs to be either a "concmd" or "srvcmd".
__________________

Last edited by OciXCrom; 07-22-2020 at 13:26.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
JocAnis
Veteran Member
Join Date: Jun 2010
Old 07-22-2020 , 14:12   Re: about server_cmd
Reply With Quote #3

Order was good in both cases

Thanks @OciXCrom, concmd is catching it with 1.8.2, in 1.8.3 it seems clcmd is updated to catch it. Doesnt matter, its fixed now, mercy
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-22-2020 , 15:01   Re: about server_cmd
Reply With Quote #4

That doesn't sound right. clcmds shouldn't be usable from the server's console.
__________________

Last edited by OciXCrom; 07-22-2020 at 15:02.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Foxa
Member
Join Date: Nov 2018
Location: Croatia
Old 07-23-2020 , 12:14   Re: about server_cmd
Reply With Quote #5

Yes they are usable, but he has a plugin in which a server sends a "amx_set_hp" command and he wants to hook that command in another plugin where he used register_clcmd instead of register_concmd
Foxa 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 13:54.


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