Jump to content

Mork

Members
  • Posts

    1
  • Joined

  • Last visited

Mork's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. addEventFunction(message) themessage == themessage if not message then message= message outputchatbox( string themessage) : follow this > x = nill y = nill -- Displays the message outputChatBox ( "I have " .. x .. " apples and " .. y .. " oranges." ) function colouredChat ( message, theType ) if theType == 0 then --if its normal chat (not /me or teamchat) then cancelEvent() --prevent MTA from outputting chat message = string.gsub(message, "#%x%x%x%x%x%x", "") --remove any hex tags in a player's chat to prevent custom colours by using lua's string.gsub local r,g,b = getPlayerNametagColor ( source ) --get the player's nametag colour local chatterName = getPlayerName ( source ) --get his name --output a message with the name as his nametag colour, and the rest in white. outputChatBox ( chatterName..":#FFFFFF "..message, getRootElement(), r, g, b, true ) end end addEventHandler("onPlayerChat", get addEventCommand("onPlayerJoin",getRootElement(),onQuit) end; outputchatbox(string true) end. function "test" (message) addEventFunction(nill)
×
×
  • Create New...