• HUD_PRINTCENTER (Color, time)
    3 replies, posted
I seem to be having some issues with adding color to text. I can do this fine clientside but not serverside. Is the function for adding color clientside only or can it also be done serverside? Also how would i INCREASE the time the message stays on screen? The default is no where long enough to read the message. Below is my unmodifyed code (No color or time values) This works by itself but alas i wish to accomplish color and a longer display time. [CODE]function devtalk( ply, text, public ) if ply:SteamID() == "STEAM_0:1:49373940" and (string.sub(text, 1, 7) == "!update") then PrintMessage( HUD_PRINTCENTER, "[Attention!] The server is updating. You may experience lag or connection problems." ) elseif ply:SteamID() != "STEAM_0:1:49373940" and (string.sub(text, 1, 7) == "!update") then ply:PrintMessage( HUD_PRINTTALK, "Sorry, you do not have the sufficient privileges to run that command." ) end end hook.Add( "PlayerSay", "chatCommand", devtalk );[/CODE]
You can't do any of that with this function afaik.
[QUOTE=Robotboy655;42984150]You can't do any of that with this function afaik.[/QUOTE] Are their any OTHER functions i could use that would work SERVERSIDE?
No, only the ones you create yourself. It isn't hard, and you know it.
Sorry, you need to Log In to post a reply to this thread.