![]() local function Command(ply, text, teamOnly, dead)Ĭhat. For anyone else who may run into this later on, it's much simpler to just use the GM:OnPlayerChat hook. Net.Receive( "SendColouredChat", ReceiveColouredChat )ĮDIT: Returned to this question after a few years. Hook.Add( "PlayerSay", "SendColouredChat", SendColouredChat ) If string.sub( text, 1, 8 ) = "!command" then Right-clicking on the AMI of your choice brings up a contextual menu choose Launch Instance to create your instance. Util.AddNetworkString( "SendColouredChat" ) you could always try sending a net message: if SERVER then You'd need something else, like ChatPrint()ĮDIT: Just realized ChatPrint() doesn't accept Color() arguments in it. You're using LocalPlayer() (which is only called client-side) as well as chat.AddText() (again, only called client-side) inside of a "PlayerSay" hook (which is a server-side hook).
0 Comments
Leave a Reply. |