View Single Post
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 07-18-2019 , 11:45   Re: Command To Work From Web Console Too, Not Only When You Are In Server.
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
clcmd -> client console
srvcmd -> server console
concmd -> client + server console
Yes I know about it.

I want to use this comnand say /change.
Example:
Press Y -> "/change" in server/game.
And "say /change" from game console.

I tried it but it didn't work from console (never tested as client).

PHP Code:
register_concmd("say /change""CMD_ModeChange"); 
Now airkash has told another way in above post,

PHP Code:
register_concmd("change""CMD_ModeChange"); 
So, I was asking do I have to use?

1.
PHP Code:
register_concmd("change""CMD_ModeChange"); 
2.
PHP Code:
register_concmd("/change""CMD_ModeChange"); 
"
3.
PHP Code:
register_concmd("say /change""CMD_ModeChange"); 
since I want /change as a command in say.

Last edited by Alber9091; 07-18-2019 at 12:26.
Alber9091 is offline