Jump to content

[HELP] Whisper to specific player


Recommended Posts

wbykos wants to talk from the console/host to specific players without anyone else noticing.

Whispers are not private messages, anyone near a player whispering can see the message.

 

TheNet:Say displays on chat, TheNet:Announce displays on top.

 

So a server/client widget is needed, so that the server can send and display strings on the chosen client widget.

 

I don't think there is a SendModRPCToClient, and a net_bool to push an event doesn't make the cut.

 

What we have to do is put a net_string on each player, then the server updates it, the selected client listens the variable get dirty, then displays the message somewhere.

Link to comment
Share on other sites

wbykos wants to talk from the console/host to specific players without anyone else noticing.

Whispers are not private messages, anyone near a player whispering can see the message.

 

TheNet:Say displays on chat, TheNet:Announce displays on top.

 

So a server/client widget is needed, so that the server can send and display strings on the chosen client widget.

 

I don't think there is a SendModRPCToClient, and a net_bool to push an event doesn't make the cut.

 

What we have to do is put a net_string on each player, then the server updates it, the selected client listens the variable get dirty, then displays the message somewhere.

 

Hmm... does this mean that if i fake position of the Host and then call TheNet:Say(msg, true) anyone near fake position will receive msg? Possible? :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...