Ulysses Stuff > Releases

Player Connect/Disconnect Message [1.11v]

<< < (21/37) > >>

Saucey:

--- Code: ---local Tags =
{
--Group    --Tag     --Color
{"admin", "ADMIN", Color(0, 0, 255, 255) },
{"superadmin", "SUPERADMIN", Color(255, 0, 0, 255) },
{"owner", "OWNER", Color(0, 255, 0, 255) }
}
--- End code ---

How you did this code above, I would like for the connections to be displayed like so "[Server] [Admin] Mr. Apple has joined the server!"
I have 8 ranks that I would like to be displayed like how they display in the chat with that code.

I would greatly appreciate that!

nar308:
Is there a way to only target a specific group only? So that that group is the only one that the notification comes up for. Thanks.

Avoid:
Hello,
take a look at the code and add something before the message is being shown to the players!
There you could do an if-statement with IsAdmin/IsUserGroup.

My 0.02$, Avoid

nar308:
Thank you for the reply, so would it be something like

if (not IsValid(ply)) or ply:IsSuperAdmin()
then chat.AddText( Color( 255, 0, 255 ), "[Server] ", nickteamcolour1, name1, Color( 255, 255, 255 ), " has joined in the server." )?

nar308:
Ok a quick question again, how would i go about making it target a specific player. Like for example if i wanted it to only display the message to someone named Bob?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version