AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to 'aim' a SeverCommand from a func_button? (https://forums.alliedmods.net/showthread.php?t=154957)

Werewolf_UK 04-15-2011 17:31

How to 'aim' a SeverCommand from a func_button?
 
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?


All times are GMT -4. The time now is 19:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.