• Chat Print
    3 replies, posted
How to run Chat.AddText on all client
net.Broadcast net.Receive chat.AddText
And like to make chat.AddText for individual ULX groups. I have a client side vgui menu and there is a TextEntry after entering the text there, the message should be sent to all administrators. chat.AddText( Color(255, 0, 0), "[Admin Chat] ", Color(49, 49, 49), LocalPlayer():Nick()..": ", Color(255, 255, 255), TextEntry:GetValue() )
to have a text only appear you could either make a clientside check that checks if the message is supposed to be for admin, but thats probably not a good idea since anyone with a bit of knowledge could then just make the if statement true, and see every admin chat message. So you could use the second way, which is instead of net.broadcast you use a normal net.send through a for loop through the list of players, if they are admins, send the net message to them
Sorry, you need to Log In to post a reply to this thread.