This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

engclient_cmd() with amx console commands?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 22:25.


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