AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Server tried to send invalid command [ messagemode ] (https://forums.alliedmods.net/showthread.php?t=209237)

Skull3D 02-23-2013 05:20

Server tried to send invalid command [ messagemode ]
 
Hi, my problem lies in the fact that messagemode does not work.

Code:
Code:

register_clcmd("BCM_SetProperty",    "SetPropertyBlock",    -1);

client_cmd(id, "messagemode BCM_SetProperty");

Error: Server tried to send invalid command

YamiKaitou 02-23-2013 05:26

Re: Server tried to send invalid command [ messagemode ]
 
Seems messagemode was added to the list of blocked commands with the latest update. There is nothing you can do about it

Skull3D 02-23-2013 07:50

Re: Server tried to send invalid command [ messagemode ]
 
Ok, thanks. Close.

ironskillz1 02-23-2013 14:17

Re: Server tried to send invalid command [ messagemode ]
 
Quote:

Originally Posted by Skull3D (Post 1900123)
Ok, thanks. Close.

You can fix it

Do it like this and i will work
Code:

client_cmd(id, "messagemode _SetProperty");
Or test this if it didnt work
Code:

client_cmd(id, "messagemode SetProperty");

fysiks 02-24-2013 00:23

Re: Server tried to send invalid command [ messagemode ]
 
Quote:

Originally Posted by YamiKaitou (Post 1900062)
Seems messagemode was added to the list of blocked commands with the latest update. There is nothing you can do about it

Oh wow, didn't think this one was a big issue.


Quote:

Originally Posted by ironskillz1 (Post 1900320)
You can fix it

Do it like this and i will work
Code:

client_cmd(id, "messagemode _SetProperty");
Or test this if it didnt work
Code:

client_cmd(id, "messagemode SetProperty");

That second one is the same thing as the OP posted. Are you sure your first one there will actually work? You didn't seem so sure about it.

meTaLiCroSS 02-24-2013 00:45

Re: Server tried to send invalid command [ messagemode ]
 
Quote:

Originally Posted by YamiKaitou (Post 1900062)
Seems messagemode was added to the list of blocked commands with the latest update. There is nothing you can do about it

I activated the cl_filterstufftext command and server was able to send me a "messagemode" cmd, which I think it's a little bit strange comparing to this issue

Tozza 02-24-2013 14:20

Re: Server tried to send invalid command [ messagemode ]
 
Quote:

Originally Posted by fysiks (Post 1900613)

That second one is the same thing as the OP posted. Are you sure your first one there will actually work? You didn't seem so sure about it.

The last one worked for me.

fysiks 02-24-2013 14:25

Re: Server tried to send invalid command [ messagemode ]
 
Quote:

Originally Posted by Tozza (Post 1901069)
The last one worked for me.

Did you try the one in the first post? There is no difference on a fundamental level, the only difference is that underscores are used but that shouldn't matter as an underscore is just another character. This is unless Valve specifically disallowed underscores which makes absolutely no sense.

ironskillz1 02-24-2013 16:33

Re: Server tried to send invalid command [ messagemode ]
 
Quote:

Originally Posted by fysiks (Post 1901077)
Did you try the one in the first post? There is no difference on a fundamental level, the only difference is that underscores are used but that shouldn't matter as an underscore is just another character. This is unless Valve specifically disallowed underscores which makes absolutely no sense.

It make no sense but it work :)

Skull3D 02-25-2013 11:29

Re: Server tried to send invalid command [ messagemode ]
 
Thanks, i use and work. Sorry my english is easy ;(

client_cmd(id, "messagemode SetProperty");


All times are GMT -4. The time now is 21:44.

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