Jump to content

SnoopCat

Members
  • Posts

    413
  • Joined

  • Last visited

Everything posted by SnoopCat

  1. well i was not asking your opinion but ok...
  2. There is a free Download Map Made by me download link: http://www.mediafire.com/?5mmu6yu496nmkoh
  3. bro replacing that sintax isnt working
  4. the color codes are on players nicknames
  5. hey guys i have a problem , i want to do my race winner message apear whit color codes of players but when i try to do it , it appears white and color code apears whit letter but not the color on the name code: function dxDrawColorText(str, ax, ay, bx, by, color, scale, font) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) end end addEvent("onWins", true) function drawNexMapString(player) local x, y = guiGetScreenSize() winner = dxText:create(""..getPlayerNametagText(player).." Ha Ganado!!!", x / 2, y / 2 - 10 + 75 - 41, false, "bankgothic", 1, "center") nextmap = dxText:create( "Proximo mapa en!:", x / 2, y / 2 - 10 + 75 + 11, false, "bankgothic", 1, "center") winner:type('stroke', 1, 0, 0, 0, 255) nextmap:type('stroke', 1, 0, 0, 0, 255) local timerTime = 5 timer = dxText:create( tostring(timerTime), x / 2, y / 2 - 10 + 75 + 41, false, "bankgothic", 1, "center") timer:type('stroke', 1, 0, 0, 0, 255) setTimer(function()timerTime = timerTime - 1 timer:text(tostring(timerTime)) end, 1000, 4) setTimer(function()winner:visible(false) nextmap:visible(false) timer:visible(false)end, 5500, 1) end addEventHandler("onWins", getRootElement(), drawNexMapString)
  6. SnoopCat

    plz help

    does any one knows why this happens?
  7. SnoopCat

    plz help

    and what means when the debugscript 3 says WARNING: Loading script failed: Not enough memory its says that and script doesnt load... what can be?
  8. SnoopCat

    plz help

    but this problem apeared when i changed host this resource works perfect on my personal server
  9. SnoopCat

    plz help

    can someone tell me what means this image plz
  10. confusing? why sould someone get confused on a rect inv road
  11. there is my newest feat whit anubias and tirnano and a little help of nacheto and Stailok hope you like it
  12. hey guys i was trying to change font to my speedo but when i started script speedo disapeared idk what im doing wrong... look this is my script: Client gui.lua urfont = guiCreateFont( "urfont.ttf", 13 ) urfont = dxCreateFont("urfont.ttf",13) g_GuiLabel = { } local x, y = guiGetScreenSize () local localPlayer = getLocalPlayer() function GuiShow() if g_Settings.Visible then g_GuiLabel.Speed:visible(true) g_GuiLabel.Unit:visible(true) -- g_GuiLabel.Spec:visible(true) end end addEventHandler("onClientScreenFadedIn", root, GuiShow) function GuiHide() g_GuiLabel.Speed:visible(false) g_GuiLabel.Unit:visible(false) -- g_GuiLabel.Spec:visible(false) end addEventHandler("onClientScreenFadedOut", root, GuiHide) function GuiInitialize() screenWidth, screenHeight = guiGetScreenSize() g_GuiLabel.Speed = dxText:create("0", screenWidth-72, screenHeight - 70, false, urfont, 2, "right") g_GuiLabel.Speed:type("stroke", 3, 0, 0, 0, 255) g_GuiLabel.Unit = dxText:create("", screenWidth-64, screenHeight - 70, false, urfont, 1, "left") g_GuiLabel.Unit:type("stroke", 2, 0, 0, 0, 255) g_GuiLabel.Unit:color(255, 190, 0) -- g_GuiLabel.Map = dxText:create(" MAP:", 50, screenHeight - dxGetFontHeight(0.7, 'urfont')/2, false, urfont, 0.7, "right") -- g_GuiLabel.Map:type("stroke", 2, 0, 0, 0, 255) -- dxDrawText (s_Spectators, textX, textY, x, y, tocolor(255, 70, 0), 0.4, 'urfont' ,true) -- g_GuiLabel.Spec = dxText:create(""..s_Spectators.."", screenWidth-130, screenHeight - 400, false, urfont, 0.7, "left") -- g_GuiLabel.Spec:type("stroke", 2, 0, 0, 0, 255) g_GuiLabel.GO = dxText:create(" ", 70, screenHeight - 350, false, urfont, 6, "left") g_GuiLabel.GO:type("stroke", 5, 0, 0, 0, 255) g_GuiLabel.GO:color(255, 0, 0) GuiHide() end GuiInitialize() addEventHandler("onClientPlayerWasted", getLocalPlayer(), function() g_GuiLabel.GO:text(" ") local sound = playSound("fail.mp3", false) setTimer ( resetTexte, 3000, 1) end) function resetTexte() g_GuiLabel.GO:text(" ") end
  13. yo uso 000webhost.com es como un host pago pero le puse un dominio .com.ar que son gratis y tengo un foro smf miren http://ur-mta.com.ar
  14. hola miren mi server esta hosteado un un host de chile pero me lo suspendieron devido a este problema mis preguntas son: -Que es overload? -Como resuelvo esto para que no tenga mas overload?
  15. hey hello i have a radio resource but i need it to stop map music... is there any way to do it? Client: aChannelList={}; iCurrentChannel = 0; currentSound = nil; iCurrentText = nil; bRender = true; local function showText(sText) if not iCurrentText then iCurrentText = oTextList_functions.newText(sText,0.3,0.1,0.3,0.1,200,200,0,0,"default","left","top",true,true); end oTextList_functions.setText(iCurrentText,sText); triggerShowText(sText); end local function playChannel(id) setRadioChannel(0); if currentSound then destroyElement(currentSound); end currentSound = nil; if aChannelList[id] and aChannelList[id].addr ~= "" then currentSound = playSound(aChannelList[id].addr,true); setSoundVolume(currentSound,0.7); end showText(aChannelList[id].name); end local function addNewChannel(sName,sWebAddress,sImageName) local iCount = #aChannelList; iCount = iCount + 1; aChannelList[iCount] = {}; aChannelList[iCount].name = sName; aChannelList[iCount].addr = sWebAddress; aChannelList[iCount].imge = sImageName; end local function getNextChannel() iCurrentChannel = iCurrentChannel + 1; if iCurrentChannel > #aChannelList then iCurrentChannel = 1; end playChannel(iCurrentChannel) end local function getPrevChannel() iCurrentChannel = iCurrentChannel - 1; if iCurrentChannel < 0 then iCurrentChannel = #aChannelList; end playChannel(iCurrentChannel) end local function INIT_RADIO() bindKey("radio_next","down",getNextChannel); bindKey("radio_previous","down",getPrevChannel); bindKey("pgup","down",getNextChannel); bindKey("pgdn","down",getPrevChannel); toggleControl("radio_next",false); toggleControl("radio_previous",false); addNewChannel("Iner Radio","http://unlimitedracers.no-ip.org:8070/listen.pls","Iner Radio"); addNewChannel("Radio OFF","","off"); end local function DEINIT_RADIO() toggleControl("radio_next",true); toggleControl("radio_previous",true); unbindKey("radio_next","down",getNextChannel); unbindKey("radio_previous","down",getPrevChannel); unbindKey("pgup","down",getNextChannel); unbindKey("pgdn","down",getPrevChannel); end addEventHandler("onClientResourceStart",getResourceRootElement(),INIT_RADIO); addEventHandler("onClientResourceStop",getResourceRootElement(),DEINIT_RADIO); local messageTimer = setTimer(outputChatBox, 120000, 0, "A page_up és a page_down gombokkal tudsz rádiót váltani amikor nem vagy kocsiban!", getRootElement(), 255, 255, 0) addEventHandler( "onClientResourceStop", getRootElement( ), function () killTimer(messageTimer) end );
  16. yo soy amigo del dueño de gameservers4you yo se por que se fueron a la mierda.... simplemente fue por que aya en europa son extrictos con lo del copyright... y le pillaron unos mp3 dentro de sus maquinas (mapas de race etc etc que son los que traen musica) y el govierno de su pais le puso una multa de 2.000 euros... lo cual lo llevo a tener que vender las maquinas de hosting...(donde se aloja tu server).. yo tambien tengo host con el y cagamos todos pero jihost es buena alternativa pero me dicen que no les queda cupo para mta PD: Tambien conosco el dueño de Clanznetwork y tambien tengo server con ellos pero andaba mejor el de gameservers4you... pero bueh..... si me desean preguntar algo mas mi mail es [email protected]
  17. SnoopCat

    problem

    i need help i have a friend and he wants to install MTA but when he install it they press the MTA icon and it opens GTA game not mta.... i need help plz!
×
×
  • Create New...