Jump to content

Park

Members
  • Posts

    2
  • Joined

  • Last visited

Park'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. function mark(username,password) addAccount(username,password) for k=1,2000 do x,y,z = getElementPosition(source) x = x+1 y= y+1 mr = createMarker(x,y,z,"cylinder", 1.5, 255, 255, 0, 170 ) end addEventHandler("onClientMarkerHit", mr, function(source) setElementPosition(source,4363.75445,4865.2422,12.6) local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) -- create a window which has "Information" in the title bar. local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) -- create a tab panel which fills the whole window local tabMap = guiCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel' local tabHelp = guiCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel' -- adds a label (text) to each tab guiCreateLabel(0.02, 0.04, 0.94, 0.2, "This is information about the current map", true, tabMap) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "This is help text.", true, tabHelp) end) addEventHandler ( 'onPlayerLogin', getRootElement ( ), mark,username,password) help :'( :(
  2. i dont know why this not work i am new scripter and i want to learn and i am not good and i dont know many things and my friend didnt want to help me and he make fun of me function(message) themessage == message if themessage then themessage = message outputchatbox( string themessage) : follow this > x = 5 y = 10 -- 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", getRootElement(), colouredChat) end; else outputchatbox(string error) : local msg_red,msg_green,msg_blue = 255,255,0 function servertalkprivate(message, sendto) --Talk to one client only outputChatBox(tostring(message), sendto, msg_red, msg_green, msg_blue, true) end function servertalk(message) --Talk to everyone servertalkprivate(message, getRootElement()) end function onJoin() servertalkprivate("error", source) end addEventHandler("onPlayerJoin",getRootElement(),onJoin) end; outputchatbox(string true) end. function "test" (message)
×
×
  • Create New...