Hello everyone,
I'm new to the mapping scene but am a long time server admin for TF2.
I'm making a map for TF2. I created a point_clientcommand entity, then created a box with trigger_multiple tied to it. I named everything, and it works on a local server run, but if anyone else (even on LAN) connects to the server, it gives this error message:
and
From my research I've found that Valve blocks certain commands from being executed by the server for security reasons, which is understandable, but join_class or kill? Come on. Those don't affect the player or his or her security, it only changes up the gameplay.
Anyway, I figure the best solution is to use point_servercommand, then tie the output of trigger_multiple to something via SourceMod, such as...
or
Problem? I can't figure out how to get the map to pass the player's name/SteamID variable to execute the server command to in turn execute it on the player via SM. Hope that makes sense. What goes in place of PLAYER above in Hammer?
All I'm doing is making a trigger that forces a player to join a certain class based on the map. I don't really want to use a plugin because if other people run the map on their servers they would have to run the same plugin as well which they may fail to do and will destroy the whole purpose of the map!
Thoughts? Suggestions?
Thanks a million.
[BR5DY]
I'm new to the mapping scene but am a long time server admin for TF2.
I'm making a map for TF2. I created a point_clientcommand entity, then created a box with trigger_multiple tied to it. I named everything, and it works on a local server run, but if anyone else (even on LAN) connects to the server, it gives this error message:
Code:
FCVAR_SERVER_CAN_EXECUTE prevented server running command: kill
and
Code:
FCVAR_SERVER_CAN_EXECUTE prevented server running command: join_class
From my research I've found that Valve blocks certain commands from being executed by the server for security reasons, which is understandable, but join_class or kill? Come on. Those don't affect the player or his or her security, it only changes up the gameplay.
Anyway, I figure the best solution is to use point_servercommand, then tie the output of trigger_multiple to something via SourceMod, such as...
Code:
sm_slay PLAYER
or
Code:
sm_team 2 PLAYER
Problem? I can't figure out how to get the map to pass the player's name/SteamID variable to execute the server command to in turn execute it on the player via SM. Hope that makes sense. What goes in place of PLAYER above in Hammer?
All I'm doing is making a trigger that forces a player to join a certain class based on the map. I don't really want to use a plugin because if other people run the map on their servers they would have to run the same plugin as well which they may fail to do and will destroy the whole purpose of the map!
Thoughts? Suggestions?
Thanks a million.
[BR5DY]