Raised This Month: $ Target: $400
 0% 

SourceMod and Hammer point_servercommand "say"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Anjin
Senior Member
Join Date: Apr 2015
Old 07-08-2015 , 05:15   SourceMod and Hammer point_servercommand "say"
Reply With Quote #1

So I have a map that on a button trigger sends a "say blablabla" command to the client. This works normally when I run the map locally without SourceMod, and the client actually says "blablabla."

But whenever I run the map on my server with SM, the say command is never executed. Why not, and what can I do instead?
Anjin is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 07-08-2015 , 05:21   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #2

Which plugins do you run?

Last edited by h3bus; 07-08-2015 at 05:21.
h3bus is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-08-2015 , 05:23   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #3

Valve made a cvar (since the workshop update) that disables point_servercommand entities from being executed from a map on the dedicated server unless if it's an official Valve map. (This is kinda needed since malicious mappers can damage/destroy servers by running malicious commands on the server console.)

Enter "sv_allow_point_servercommand" into the server console for more details. The default setting is that only official Valve maps can use point_servercommand.

Last edited by Potato Uno; 07-08-2015 at 05:23.
Potato Uno is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 07-08-2015 , 05:30   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #4

Quote:
Originally Posted by h3bus View Post
Which plugins do you run?
I tried removing all plugins, still doesn't work.

sv_allow_point_servercommand
Unknown command "sv_allow_point_servercommand"
sm_cvar sv_allow_point_servercommand
[SM] Unable to find cvar: sv_allow_point_servercommand

Game: CS:GO

Last edited by Anjin; 07-08-2015 at 05:36.
Anjin is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-08-2015 , 05:32   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #5

Hmmm. Check if the server console prints out the "blablabla" instead? If that doesn't work, then I don't have a clue. If you have stripper: source installed, possibly disable that as well.

Also the sv_allow_point_servercommand is a cvar that was rolled out in the TF2 map workshop update. You didn't specify the game it was for, and I also assumed that CS:GO had it since they had the workshop for awhile. (Strange that they don't?)

Last edited by Potato Uno; 07-08-2015 at 05:33.
Potato Uno is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 07-08-2015 , 05:37   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #6

It seems putting "say 1" in bspconvar_whitelist.txt fixed it, but that gets overwritten on every update I think.

I guess sv_allow_point_servercommand is only for TF2, which seems stupid. Wtf, Valve?

Well, at least I don't have to recompile my maps... It's something.

Last edited by Anjin; 07-08-2015 at 05:41.
Anjin is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-08-2015 , 05:55   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #7

Aren't you supposed to duplicate those files and add "_custom" at the end of it, like mapcycle files and whatnot? That way they don't get overwritten on updates.

Last edited by Potato Uno; 07-08-2015 at 05:55.
Potato Uno is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 07-08-2015 , 05:59   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #8

Not sure if that'd work, Google shows no results for "bspconvar_whitelist_custom.txt"

Last edited by Anjin; 07-08-2015 at 05:59.
Anjin is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-08-2015 , 06:03   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #9

That file should then stay the same unless you ever run an integrity check on your server (then it might get overwritten). Just check the file every month or so.
Potato Uno is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 07-08-2015 , 06:13   Re: SourceMod and Hammer point_servercommand "say"
Reply With Quote #10

Yeah, I guess I have no other option...
Anjin 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 01:33.


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