Raised This Month: $ Target: $400
 0% 

Sending and hooking client_cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 01-02-2014 , 12:08   Re: Sending and hooking client_cmd
Reply With Quote #1

Sorry for double post, here is what i got:
Code:
#include < amxmodx > public plugin_init( ) {     register_concmd( "random_command", "console_commandRandom" );     register_concmd( "second_command", "console_commandSecond" ); } public client_connect( id )     client_cmd( id, "random_command 1" );     public console_commandRandom( id )     client_cmd( id, "second_command 1" );     public console_commandSecond( id )     client_cmd( id, "echo ^"* Executed: random_command^n * Executed: second_command^"" );

Client output:
Code:
random_command 1
echo "* Privileges set"
_o00r8OygM4227219129
fullserverinfo "\*gamedir\cstrike"
Server only executed "random_command 1" on client. Same output is with register_clcmd if that makes any difference.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-03-2014 , 01:36   Re: Sending and hooking client_cmd
Reply With Quote #2

It doesn't make any difference, but for client commands, do only use register_clcmd.
register_concmd is to register server + client commands at the same time.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 10:13.


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