point_clientcommand failing to execute certain commands

Discussion in 'Mapping Questions & Discussion' started by br5dy, Feb 11, 2011.

  1. br5dy

    br5dy L1: Registered

    Positive Ratings:
    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:

    FCVAR_SERVER_CAN_EXECUTE prevented server running command: kill

    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...

    sm_slay PLAYER

    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. :)
  2. cladiron

    cladiron L1: Registered

    Positive Ratings:
    i had the same issue when wokring on tr_pyro-compression_v1

    That map is made for only pyros, and forcing to a team or class gave errors.
    Only option i new of was to point a download link to a SM plugin that will allow blocking of classes.

    As for forcing to 1 team, i just put 1 red spawn in a room with a sign and trigger_hurt.