How to 'aim' a console command?

Discussion in 'Mapping Questions & Discussion' started by Werewolf, Apr 15, 2011.

  1. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    702
    Positive Ratings:
    198
    Hi

    I am currently building an achievement map to replace an older version on a server I admin on. Because we get a lot of non-English players who join and don't understand our server rules, I am making a translation room.

    The idea I have is to have various flags on the walls of a room set so that when a player presses, touches or uses that flag, a message is sent to them via the a server command. However I don't want this message to get spammed to everyone, only the player who triggered it, but I don't know to do this.

    Does anyone know I could set this so that it only sends the message to the players I want? If it helps, the server command I am using at the moment is (english version) sm_pmsay @aim "This is an English Server, please speak English here."

    Would it possible and if so how, to set this command to a func_button with a server command output but change the @aim so that it targets the player who pressed the button?
     
  2. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,031
    Positive Ratings:
    3,975
  3. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    702
    Positive Ratings:
    198
    It quite possibly is, I was just wondering if it could be done with some form of entity at all?
     
  4. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    AFAIK no; if you're displaying an entity-based message in TF2 it's either to no-one or everyone.
     
    • Thanks Thanks x 1