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

engclient_cmd() with amx console commands?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-26-2009 , 23:36   engclient_cmd() with amx console commands?
Reply With Quote #1

I couldn't get the engine client command to work with console commands defined in other amx plugins.

PHP Code:
#include <amxmodx>
public plugin_init()
{
    
register_plugin("Test""1.0""Fysiks")
    
register_concmd("test","cmdTest",_," Test command")
}

public 
cmdTest(id)
{
    
engclient_cmd(id"amx_ban""fysiks 1 ^"No reason^"")
    return 
PLUGIN_HANDLED

yeilds this in my client console:

Code:
] test
Unknown command: amx_ban
The only explaination that I could think of is that engclient_cmd() only works with HL engine commands.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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:39.


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