Notices

How to 'aim' a console command?  Thread Tools Reply
Old 04-15-2011, 04:02 PM   #1
Werewolf [UK]
L1: Registered
 
Werewolf [UK]'s Avatar
 
Werewolf [UK] is offline
Posts: 34
Thanks: 11
Thanked: 0

Question How to 'aim' a console command?


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?

__________________
[GmT] Werewolf [GB/UK]
 
Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 04-15-2011, 04:08 PM   #2
yyler
Guest
 

Posts: n/a

Default How to 'aim' a console command?


This is something that I think would be better done via server plugins.
 
Reply With Quote
Old 04-15-2011, 04:28 PM   #3
Werewolf [UK]
L1: Registered
 
Werewolf [UK]'s Avatar
 
Werewolf [UK] is offline
Posts: 34
Thanks: 11
Thanked: 0

Default How to 'aim' a console command?


Quote:
Originally Posted by yyler View Post
This is something that I think would be better done via server plugins.
It quite possibly is, I was just wondering if it could be done with some form of entity at all?

__________________
[GmT] Werewolf [GB/UK]
 
Reply With Quote
Old 04-15-2011, 04:30 PM   #4
Seba
I main Ganondorf
 
Seba's Avatar
 
Seba is offline
Posts: 2,073
Thanks: 2,134
Thanked: 1,694

Default How to 'aim' a console command?


AFAIK no; if you're displaying an entity-based message in TF2 it's either to no-one or everyone.

__________________
Quote:
Originally Posted by Selentic
This is like asking me to ignore the faults of Capitalism, Swordfish. You know how bad I am at that.

 
Reply With Quote
The Following User Says Thank You to Seba For This Useful Post:
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply

Tags
button, command

Previous Thread Next Thread
Thread Tools

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



All times are GMT -5. The time now is 10:34 AM.