AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Other way than client_cmd? (https://forums.alliedmods.net/showthread.php?t=223385)

HalfLife 08-13-2013 00:09

Other way than client_cmd?
 
Hi, I know that latest Steam update, disables client_cmd option (like for menus etc) but I made a menu for my player that can access the main server feature. It is like this:
1- My Rank ; this is like client_cmd ("say /rank")
2- Top 15 by Rank ; this is like client_cmd ("say /top15)
So what to do when it doesn't work??
Any other solution???
It is very bad that Valve disabled client_cmd function :|

ConnorMcLeod 08-13-2013 00:25

Re: Other way than client_cmd?
 
I think only some default commands are blocked, so if "say" is one of those commands, edit statx plugin.

After line
PHP Code:

register_clcmd("say /top15""cmdTop15"0"- display top 15 players (MOTD)"

add :

PHP Code:

register_clcmd("top15""cmdTop15"0"- display top 15 players (MOTD)"


And in the plugin, do :

PHP Code:

client_cmd(id"top15"); 


HalfLife 08-13-2013 00:38

Re: Other way than client_cmd?
 
Quote:

Originally Posted by ConnorMcLeod (Post 2011907)
I think only some default commands are blocked, so if "say" is one of those commands, edit statx plugin.

After line
PHP Code:

register_clcmd("say /top15""cmdTop15"0"- display top 15 players (MOTD)"

add :

PHP Code:

register_clcmd("top15""cmdTop15"0"- display top 15 players (MOTD)"


And in the plugin, do :

PHP Code:

client_cmd(id"top15"); 


Thank you so much for your helps.
But disagree with Valve why he blocked say command :down:

HalfLife 08-13-2013 02:59

Re: Other way than client_cmd?
 
But The Way is there any page that shows Valve blocked which commands in client_cmd?
(sorry if I didn't edit my last post so if I do that, you wont get notification :D)

devilicioux 08-13-2013 03:53

Re: Other way than client_cmd?
 
Quote:

Originally Posted by HalfLife (Post 2011950)
But The Way is there any page that shows Valve blocked which commands in client_cmd?
(sorry if I didn't edit my last post so if I do that, you wont get notification :D)

Yes .. Just search a little on the forum .. :D

ConnorMcLeod 08-14-2013 00:38

Re: Other way than client_cmd?
 
Quote:

Originally Posted by HalfLife (Post 2011950)
(sorry if I didn't edit my last post so if I do that, you wont get notification :D)

That's why the rule exists, please don't do that again.

HalfLife 08-14-2013 01:34

Re: Other way than client_cmd?
 
Quote:

Originally Posted by ConnorMcLeod (Post 2012643)
That's why the rule exists, please don't do that again.

Okay i'm sorry :3
Thanks for your help :)


All times are GMT -4. The time now is 15:47.

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