Target Players With Point_Servercommand

Discussion in 'Mapping Questions & Discussion' started by Stickeyjam, Nov 7, 2010.

  1. Stickeyjam

    Stickeyjam L2: Junior Member

    Messages:
    52
    Positive Ratings:
    1
    First of all, sorry for all the threads. I should really stick to 1 thread but I keep having questions pop into my head :O

    Is it possible to target a specific player with the point_servercommand entity? For example, I have a trigger_once placed on my map. I want the server command that's executed (let's use sm_noclip as an example), to be executed on the person that tirggered it. Is that possible?

    And is it even possible to have it execute Sourcemod commands?
     
  2. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,692
    Use !activator => addoutput => [playername] on the trigger_once, then have the point_servercommand filter by name and only allow whatever name you set on the trigger_once. I believe that should work.

    Oh, and since you have so many questions, just come into chat (link on top of the page) instead of making threads ;)
     
  3. Stickeyjam

    Stickeyjam L2: Junior Member

    Messages:
    52
    Positive Ratings:
    1
    So say you joined my server for the first time and your name wasn't in the filter. Could you still trigger it and get the point_servercommand to noclip you? Or can it only do it from names I provide?
     
  4. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,035
    Positive Ratings:
    4,496
    You wouldn't actually be creating a list of names or a filter of certain names. The game would do that dynamically.

    I'm not sure how to explain it. You should ask in chat for sure.

    Not that the forums are bad, but you can probably get more timely answers.
     
  5. Stickeyjam

    Stickeyjam L2: Junior Member

    Messages:
    52
    Positive Ratings:
    1
    Thanks for the help. I just need to figure out how I would write the targets name in the sourcemod command, to make it all work. Anyone know?
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    point_servercommand issues commands on the server. You would want point_clientcommand, which automatically targets the player who activates it.

    Also, the names are entity names, they have nothing to do with player aliases.