Search the Community

Showing results for tags 'script'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 574 results

  1. Boa Tarde, Tenho um sistema no meu servidor que funciona so que ai coloquei em outro servidor e ele naoe sta funcionando tem alguma função que desabilita isso? pois ele funciona em um servidor mais no outro nao. Segue abaixo o sistema Client Obrigado local textFont = "default-bold" -- The font of the tag text local textScale = 1 -- The scale of the tag text local heightPadding = 1 -- The amount of pixels the tag should be extended on either side of the vertical axis local widthPadding = 1 -- The amount of pixels the tag should be extended on either side of the horizontal axis local xOffset = 8 -- Distance between the player blip and the tag local minAlpha = 10 -- If blip alpha falls below this, the tag won't the shown local textAlpha = 255 local rectangleColor = tocolor(0,0,0,230) local w,h = guiGetScreenSize() addEventHandler("onClientRender",getRootElement(),function() if isPlayerMapVisible() then local sx,sy,ex,ey = getPlayerMapBoundingBox() local mw,mh = ex-sx,sy-ey local cx,cy = (sx+ex)/2,(sy+ey)/2 local ppuX,ppuY = mw/6000,mh/6000 local fontHeight = dxGetFontHeight(textScale,textFont) local yOffset = fontHeight/2 for k,v in pairs(getElementsByType("blip")) do local attached=getElementAttachedTo(v) if isElement(attached) and getElementType(attached)=="player" and attached ~= getLocalPlayer() then local px,py = getElementPosition(attached) local x = math.floor(cx+px*ppuX+xOffset) local y = math.floor(cy+py*ppuY-yOffset) local pname = getPlayerName(attached):gsub('#%x%x%x%x%x%x',''):gsub('#%x%x%x%x%x%x','') local nameLength = dxGetTextWidth(pname,textScale,textFont) local _,_,_,a = getBlipColor(v) -- if getElementData(attached,"Dominando") then return end if a > minAlpha then dxDrawRectangle(x-widthPadding,y+heightPadding,nameLength+widthPadding*2,fontHeight-heightPadding*2,rectangleColor,false) dxDrawText(pname,x,y,x+nameLength,y+fontHeight,tocolor(255,255,255,textAlpha),textScale,textFont,"left","top",false,false,false) end end end end end)
  2. local vehicleElements = {} allVeh = {510} local pickupTable = { {1086.1798095703,-1801.6898193359,13.601690292358}, } function createPickupOnServerStart () for i, cor in ipairs (pickupTable) do local pickup = createPickup(cor[1], cor[2], cor[3], 3, 1274, 0) setElementData(pickup, "pickupArenda", true) end end addEventHandler("onResourceStart", getResourceRootElement( getThisResource() ), createPickupOnServerStart) function onResourceStop (veh) if isTimer(vehicleElements[veh]) then killTimer(vehicleElements[veh]) end --vehicleElements[veh] = destroyElement(veh) end addEventHandler("onResourceStop", getResourceRootElement( getThisResource() ), onResourceStop) function onPickupHit (hit) if not getElementData(source, "pickupArenda") or getElementType(hit) ~= "player" and not isPedInVehicle(hit) then return end triggerClientEvent(hit, "changeArendaMenuState", hit) end addEventHandler("onPickupHit", getRootElement(), onPickupHit) function onPlayerUseCustomPickup() if getPlayerMoney(source) >= 500 then local x, y, z = getElementPosition(source) local veh = createVehicle(allVeh[math.random(1,#allVeh)], x, y, z) setElementData(veh, "starter_pack", true) setElementData(veh, "owner", source) warpPedIntoVehicle(source, veh) takePlayerMoney(source, 500) outputChatBox("Bicicleta alugada, bom uso!.", source, 0, 255, 0) else outputChatBox("Para alugar uma bicicleta você precisa de >> 500 $$ <<.", source, 255, 0, 0) end end addEvent("onPlayerUseCustomPickup", true) addEventHandler("onPlayerUseCustomPickup", getRootElement(), onPlayerUseCustomPickup) function onPlayerVehicleEnter (veh, seat) if getElementData(veh, "starter_pack") == true and seat == 0 then if isTimer(vehicleElements[veh]) then killTimer(vehicleElements[veh]) end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), onPlayerVehicleEnter) function onPlayerVehicleExit (veh, seat) if getElementData(veh, "starter_pack") == true and seat == 0 then if isTimer(vehicleElements[veh]) then killTimer(vehicleElements[veh]) end vehicleElements[veh] = setTimer(destroyElement, 300000, 1, veh) end end addEventHandler("onPlayerVehicleExit", getRootElement(), onPlayerVehicleExit) function onVehicleStartEnter (player, seat) if getElementData(source, "starter_pack") == true and seat == 0 then local owner = getElementData(source, "owner") if owner ~= player then cancelEvent() outputChatBox("Você não é dono desta bicicleta, alugue sua bike para poder usá-la.", player, 255, 0, 0) end end end addEventHandler("onVehicleStartEnter", getRootElement(), onVehicleStartEnter) This is the script to rent bike to a player. The bike is destroyed after 5 minutes, it's ok. But i need to do something that when player is arrasted, die, logout, exit of game the bike be destroyed too. function DestroyVeiculo (veh, seat) if getElementData(veh, "starter_pack") == true and seat == 0 then if isTimer(vehicleElements[veh]) then killTimer(vehicleElements[veh]) end --vehicleElements[veh] = setTimer(destroyElement, 300000, 1, veh) vehicleElements[veh] = destroyElement(veh) end end addEventHandler ("onPlayerLogout", getRootElement(), DestroyVeiculo) addEventHandler ("onPlayerQuit", getRootElement(), DestroyVeiculo) addEventHandler ("onPlayerWasted", getRootElement(), DestroyVeiculo) addEventHandler ("onPlayerBan", getRootElement(), DestroyVeiculo) addEventHandler ("onPlayerDie", getRootElement(), DestroyVeiculo) I tried to do it the way above, but not sucess. Someone can help me ? Thanks!
  3. Sorry by my english. I need to get a value with the whole number of weapons the player has. (Whole Number from player's weapon). I'm trying to do this, but with no sucess: function getPedWeapons(ped) local playerWeapons = {} if ped and isElement(ped) and getElementType(ped) == "ped" or getElementType(ped) == "player" then for i=2,9 do local wep = getPedWeapon(ped,i) if wep and wep ~= 0 then table.insert(playerWeapons,wep) end end else return false end return playerWeapons end function SaberArmas (player) outputChatBox("Armas (Caso tenha armas elas serão listadas abaixo!)",player,255,0,0) for i,wep in ipairs(getPedWeapons(player)) do outputChatBox("Você tem: " .. getWeaponNameFromID(wep),player,0,255,0) end end addEventHandler("onMarkerHit", MarkerInfo, SaberArmas) The script is making a list not a Whole Number. Someone can help me ?
  4. Server-Side possui 2 arquivos. 1: factor = 0.03 function createVehicles(player) for i,v in ipairs(getElementsByType("vehicle")) do fuel = math.random(70,80) setElementData(v, "fuel", fuel) end end function processFuel(player) for i,v in ipairs(getElementsByType("vehicle")) do local fuel = getElementData(v, "fuel") or math.random(70,80) if (getVehicleEngineState(v) and fuel > 0 ) then fuel = fuel - factor end if (fuel <= 0.99) then fuel = 0 setVehicleEngineState(v, false) end setElementData(v, "fuel", fuel) end end createVehicles() setTimer(processFuel, 1000, 0) 2: local addingFuel = {} addEvent("onVehicleRefulling", true) function vehicleRefulling(v) if (getPlayerMoney(source) < 5) then outputChatBox("#000000[ #FF0000GASOLINA #000000] #ffffffVocê não tem dinheiro $10", source, 255, 255, 255, true) else setElementData(v, "fuel", getElementData(v, "fuel") + 1) takePlayerMoney(source, 5) end end addEventHandler("onVehicleRefulling", root, vehicleRefulling) addEvent("onVehicleRefullingFull", true) function vehicleRefullingf(v) gabas = 100 - getElementData(v, "fuel") if (getPlayerMoney(source) < tonumber(gabas*5)) then outputChatBox("#000000[ #FF0000GASOLINA #000000] #ffffffVocê não tem dinheiro $"..convertNumber (gabas*5).."", source, 255, 255, 255, true) else setElementData(v, "fuel", getElementData(v, "fuel")+gabas+1) takePlayerMoney(source, tonumber(gabas*5)) end end addEventHandler("onVehicleRefullingFull", root, vehicleRefullingf) function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end Client-Side: local sx,sy = guiGetScreenSize() local px,py = 1366,768 local x,y = (sx/px), (sy/py) function gas() local vehicle = getPedOccupiedVehicle( getLocalPlayer() ) local gasosa = math.floor(getElementData(vehicle,"fuel") or 11) if ( vehicle ) then dxDrawRectangle(x*1125 - 2, y*718 - 2, x*100 + 4, y*27 + 4, tocolor(0, 0, 0, 140), false) dxDrawRectangle(x*1125, y*718, x*100, y*27, tocolor(0, 0, 0, 30), false) if gasosa <= 100 then dxDrawRectangle(x*1125, y*718, x*100/100*gasosa, y*27, tocolor(243, 0, 0, 255), false) else dxDrawRectangle(x*1125, y*718, x*100, y*27, tocolor(243, 0, 0, 255), false) end end end addEventHandler("onClientRender", root, gas) Como posso fazer para que veículos que não possuam motor, como por exemplo a bike não apareça o indicador de Gasolina ? PS: O lado do server-side não foi eu quem fiz.
  5. This is in 1440x900 (in my resolution): This is in 1920x1080: I calculate the dx elements position with this: local sx_, sy_ = guiGetScreenSize() local sx, sy = sx_/1440, sy_/900 And i draw dx elements like this: dxDrawRectangle(sx / 2 + 290, sy / 2 +240,850,65,tocolor(0,0,0,200)) What wrong??? How can i fix this problem??
  6. Toda vez que spawno um carro ele vem com placa aleatória,queria saber se tem como com um mod de loja,comprar um carro e deixar a placa fixa,toda vez que eu spawnar aquele carro na minha conta.E se é possível ter um mod onde da /placa (codigo da placa) e aparecer informações do carro?
  7. É um script de pagamento de corporações, quero que apenas X ACL receba o pegamento, como faço isso? E me corrigem se ouver algum erro kk
  8. Gostaria de saber, como eu faço pra usar o script de fome, sede e sono de uma pessoa, com o HUD de outra pessoa que tem um script diferente. E como eu faço pra quando eu abrir a tela de compra de armas, não aparecer o HUD padrão. Obrigado desde já.
  9. me ajuda a resolver esse poblema ! https://prnt.sc/ouur7u eu tento comer essa comida e não come , não aumenta nem a fome nem a sede na hud e também não consigo usar nem comer meus itens do inventario! alguém pode me ajudar!!
  10. Ola gente, então eu to tentando criar um script e me deparei com um problema pra resolver eu iria precisar fazer com que uma certa arma n atirasse ou conseguisse ficar com ela na mão munição. Alguem sabe me dizer se isso é possivel?
  11. Bom dia, Pessoal fiz um painel de informações e com um guiCreateScrollBar para volume so que esta dando quedas de FPS (depois de uns 10 minutos). textStart = guiCreateLabel (100, 241.5, 30, 22,(getElementData(getLocalPlayer(),"dxsoundLoginPlayer")or volumeStart*100).."%",false,tabConfig) guiSetFont (textStart, "default-small") MusicStart = guiCreateScrollBar(10, 240, 200, 18, true, false, tabConfig) guiScrollBarSetScrollPosition (MusicStart, getElementData(getLocalPlayer(),"dxsoundLoginPlayer")or volumeStart*100) addEventHandler("onClientGUIScroll",getRootElement(),function (Scrolled) if source == MusicStart then volumeStart2 = guiScrollBarGetScrollPosition (source) / 100 setElementData(getLocalPlayer(),"soundLoginPlayer",volumeStart2) setElementData(getLocalPlayer(),"dxsoundLoginPlayer",volumeStart2*100) -- manda para o data base guiSetText(textStart,math.floor(getElementData(getLocalPlayer(),"dxsoundLoginPlayer")).." %") end end) ----- Uso nas funções que tem playSound LoginMusic = playSound("sounds/Musics/1.mp3", true) setSoundVolume (LoginMusic, getElementData(localPlayer,"soundLoginPlayer") or 1)
  12. Client side: function showPlayerFuel() hidePlayerFuel(true); fuelFrame = guiCreateStaticImage( 0.72, 0.79, 0.05, 0.20, "images/Fuel_Gage.png", true) fuelBar1 = guiCreateStaticImage( 0.742, 0.811, 0.021, 0.17, "images/Fuel_Dot.png", true) guiBringToFront ( fuelFrame ) end addEvent("FullTank", true ) addEventHandler("FullTank", resourceRoot, showPlayerFuel) addEvent("fullRefill", true) addEventHandler("fullRefill",resourceRoot, showPlayerFuel) addEvent("fuelGageShow", true) addEventHandler("fuelGageShow", resourceRoot, showPlayerFuel) function CurrentFuelIn ( currentFuel ) local sizex = currentFuel["sizex"] local sizey = currentFuel["sizey"] local posx = currentFuel["posx"] local posy = currentFuel["posy"] hidePlayerFuel(true); fuelBar1 = guiCreateStaticImage( tonumber(posx), tonumber(posy), tonumber(sizex), tonumber(sizey), "images/Fuel_Dot.png", true) fuelFrame = guiCreateStaticImage( 0.72, 0.79, 0.05, 0.20, "images/Fuel_Gage.png", true) if(posy and posy > 0.9) then if not warningdot1 then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) end if((Posy or 0) >= 0.981) then setVehicleEngineState(getPedOccupiedVehicle(localPlayer),false) else outputChatBox("-- You Are Quite Low On Fuel | Refuel at Area 69", 255, 50, 50, true) playSoundFrontEnd(4) end end end addEvent("CurrentFuel", true) addEventHandler("CurrentFuel", resourceRoot, CurrentFuelIn) function startExit ( vehicle,seat ) if seat == 0 and fuelBar1 then local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local fTbl = {} fTbl.sizex = x fTbl.sizey = y fTbl.posx = Posx fTbl.posy = Posy triggerServerEvent('onGetFuel',vehicle,fTbl) hidePlayerFuel() if(fuelTimer) then killTimer(fuelTimer) fuelTimer = false; end end end addEventHandler("onClientPlayerVehicleExit", localPlayer, startExit ) function vehEntered ( veh,seat ) if seat == 0 and isElement(fuelBar1) then local Posx, Posy = guiGetPosition ( fuelBar1, true ) if(Posy and Posy >= 0.981) then setVehicleEngineState(veh,false) end end if(isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end fuelTimer = setTimer ( decFuel1, 2000, 0) end addEventHandler("onClientPlayerVehicleEnter", localPlayer, vehEntered ) function decFuel1() local PlayerInCar = getPedOccupiedVehicle( getLocalPlayer() ) if (PlayerInCar and getVehicleController(PlayerInCar) == localPlayer and not isPedDead(localPlayer) ) then if(not fuelBar1) then showPlayerFuel(); return; end local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local NewY,NewPosY if not Posy then return end if((isElementWithinColShape(localPlayer,safeZone) or isElementWithinSafeArea(localPlayer)) and Posy > 0.812) then NewY = y + 0.009 NewPosY = Posy - 0.009 if(warningdot1) then destroyElement(warningdot1) warningdot1 = nil playSoundFrontEnd(1) end elseif(Posy < 0.981) then local velo = getActualVelocity( PlayerInCar ) local val = (velo < 5 and 0) or (velo < 100 and 0.0007) or 0.0010 -- 6 / 9 NewY = y - val NewPosY = Posy + val if(Posy and (Posy > 0.885 and Posy < 0.95) and not warningdot1) then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) playSoundFrontEnd(4) outputChatBox("Your vehicle tank is about to run out.", 255, 100, 100); end elseif (Posy >= 0.981 and getVehicleEngineState(PlayerInCar)) then setVehicleEngineState(PlayerInCar,false) callServerFunction('setVehicleEngineState',PlayerInCar,false) end if(NewY) then guiSetSize(fuelBar1, x, NewY, true) end if(NewPosY) then guiSetPosition(fuelBar1, Posx, NewPosY, true ) end elseif(fuelTimer) then hidePlayerFuel() end end function hidePlayerFuel(bDontDestroyTimer) if(fuelFrame) then destroyElement(fuelFrame) fuelFrame = nil; end if(fuelBar1) then destroyElement(fuelBar1) fuelBar1 = nil; end if(warningdot1) then destroyElement(warningdot1); warningdot1 = nil; end if(not bDontDestroyTimer and isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end end addEvent("jacked", true ) addEventHandler("jacked", resourceRoot, hidePlayerFuel ) function getActualVelocity( element ) if(element) then x,y,z = getElementVelocity(element) end return math.sqrt(x^2 + y^2 + z^2) * 161 end Server side: function startExit ( vehicle,seat ) if seat == 0 and fuelBar1 then local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local fTbl = {} fTbl.sizex = x fTbl.sizey = y fTbl.posx = Posx fTbl.posy = Posy triggerServerEvent('onGetFuel',vehicle,fTbl) hidePlayerFuel() if(fuelTimer) then killTimer(fuelTimer) fuelTimer = false; end end end function vehEntered ( veh,seat ) if seat == 0 and isElement(fuelBar1) then local Posx, Posy = guiGetPosition ( fuelBar1, true ) if(Posy and Posy >= 0.981) then setVehicleEngineState(veh,false) end end if(isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end fuelTimer = setTimer ( decFuel1, 2000, 0) end function decFuel1() local PlayerInCar = getPedOccupiedVehicle( getLocalPlayer() ) if (PlayerInCar and getVehicleController(PlayerInCar) == localPlayer and not isPedDead(localPlayer) ) then if(not fuelBar1) then showPlayerFuel(); return; end local x, y = guiGetSize( fuelBar1, true ) local Posx, Posy = guiGetPosition ( fuelBar1, true ) local NewY,NewPosY if not Posy then return end if((isElementWithinColShape(localPlayer,safeZone) or isElementWithinSafeArea(localPlayer)) and Posy > 0.812) then NewY = y + 0.009 NewPosY = Posy - 0.009 if(warningdot1) then destroyElement(warningdot1) warningdot1 = nil playSoundFrontEnd(1) end elseif(Posy < 0.981) then local velo = getActualVelocity( PlayerInCar ) local val = (velo < 5 and 0) or (velo < 100 and 0.0007) or 0.0010 -- 6 / 9 NewY = y - val NewPosY = Posy + val if(Posy and (Posy > 0.885 and Posy < 0.95) and not warningdot1) then warningdot1 = guiCreateStaticImage( 0.7288, 0.912, 0.014, 0.016, "images/warning_dot.png", true) playSoundFrontEnd(4) outputChatBox("Your vehicle tank is about to run out.", 255, 100, 100); end elseif (Posy >= 0.981 and getVehicleEngineState(PlayerInCar)) then setVehicleEngineState(PlayerInCar,false) callServerFunction('setVehicleEngineState',PlayerInCar,false) end if(NewY) then guiSetSize(fuelBar1, x, NewY, true) end if(NewPosY) then guiSetPosition(fuelBar1, Posx, NewPosY, true ) end elseif(fuelTimer) then hidePlayerFuel() end end function hidePlayerFuel(bDontDestroyTimer) if(fuelFrame) then destroyElement(fuelFrame) fuelFrame = nil; end if(fuelBar1) then destroyElement(fuelBar1) fuelBar1 = nil; end if(warningdot1) then destroyElement(warningdot1); warningdot1 = nil; end if(not bDontDestroyTimer and isTimer(fuelTimer)) then killTimer(fuelTimer); fuelTimer = nil; end end addEvent("jacked", true ) addEventHandler("jacked", resourceRoot, hidePlayerFuel ) function getActualVelocity( element ) if(element) then x,y,z = getElementVelocity(element) end return math.sqrt(x^2 + y^2 + z^2) * 161 end
  13. Boa Tarde , precisava de uma ajuda no meu gui to fazendo um guiCreateScrollBar para colocar a renderização do mapa e queria colocar para aparecer o guisetText seguir de acordo so que nao vai ele fica nisso queria que o guisetText coloca-se como queria que quando puxa a barra fica no minimo 200 ai vai subindo de 100 a 100 ate chegar 700. so que nao to conseguindo no chat 350 350 350 700 690 660 640 620 addEventHandler("onClientGUIScroll",getRootElement(),function (Scrolled) if source == Distance then textdistances = guiScrollBarGetScrollPosition (source) / 100*1000 -- setFarClipDistance( textdistances*1000 ) if textdistances < 200 or textdistances > 700 then textdistances2 = 200 else textdistances2 = textdistances end -- setFarClipDistance(1000) outputChatBox(textdistances2) guiSetText(textDistance,textdistances2.."%") end end)
  14. inimarker = createMarker(2825.11694, 1295.62183, 9.76514, "cylinder", 1.5, 255, 0, 0, 100) finmarker = createMarker(2826.12085, 1355.72925, 9.75000, "cylinder", 1.5, 255, 255, 0, 100) iniblip = createBlipAttachedTo(inimarker, 42) finblip = createBlipAttachedTo(finmarker, 0) setElementVisibleTo(finmarker, root, false) setElementVisibleTo(finblip, root, false) vehserver = {} addEventHandler("onMarkerHit", inimarker, function(player) local lvls = tonumber(getElementData(player, "Level")) if lvls and lvls >= 35 then if not (vehserver[player]) then if (getElementDimension(player) == 0) then if vehserver[player] and isElement(vehserver[player]) then destroyElement(vehserver[player]) vehserver[player] = createVehicle(609,2830.94849, 1294.29333, 10.77368) warpPedIntoVehicle(player, vehserver[player]) setElementVisibleTo(finblip, player, true) setElementVisibleTo(finmarker, player, true) outputChatBox("#483D8B[X] #FFFFFFPara Parar de Trabalhar Digite /Cancelar", player, 255, 255, 255, true); end else outputChatBox("#483D8B[X] #FF3232ERRO. #FFFFFFVoçe Já Está Trabalhando].", player, 255, 255, 255, true); end else outputChatBox("#483D8B[X] #FF3232ERRO. #FFFFFFNecessita Estar Nivel 35 Para Continuar", player, 255, 255, 255, true); end end function fim(player) if vehserver[player] and isElement(vehserver[player]) then givePlayerMoney(player, 1000) destroyElement(vehserver[player]) setElementVisibleTo(finblip, player, false) setElementVisibleTo(finmarker, player, false) outputChatBox("#00ff00Você GANHOU R$1000", player, 255,255,255,true) end end addEventHandler("onMarkerHit", finmarker, fim) function cancelarserver(player) destroyElement(vehserver[player]) setElementVisibleTo (finblip, player, false) setElementVisibleTo (finmarker, player, false) outputChatBox("#00ff00Você Cancelou", player, 255,255,255,true) end addCommandHandler("cancelar", cancelarserver) Fiz um Script bem simples mas quero que apenas pessoas com mais de level "35" possam usar esse trabalho, estou desde ontem tentando fazer isso mas não estou achando meu erro, se alguém puder me ajudar desde já agradeço.
  15. So I wanted to use a zm server's resources to play it on local server. After downloading the resources, I copied them to the resources library. I'm talking about appr. 60 different resources belonging to this one zm server, however I only added meta to the 'zombies' resources to see whether it is working or not. After started the local, I noticed the server does not spawn any zombies. ' ERROR: Couldn't parse meta file for resource 'zombies' [Line 9: Error reading Attributes.] ' This was the error message I got. What should I fix? Or is it possible that its problem is I only loaded this one resource (not all the 60) and it can't work individually? My own-made meta: <meta> <script src='client_anim.Lua' type='client' /> <script src='help_client.Lua' type='client' /> <script src='hide_client.Lua' type='client' /> <script src='lagreduce_client.Lua' type='client' /> <script src='Moneylogs.Lua' type='server' /> <script src='ped.ifp' type='client' /> <script src='petrol_c.Lua' type='client' /> <config src='skins.xml' type='' </config> <script src='textlib.Lua' type='server' /> <script src='textlib_anim.Lua' type='server' /> <file src='zombiewood.png' /> <file src='edf/zombiespawn.png' /> <file src='fonts/BIRTH_OF_A_HERO.ttf' /> <file src='fonts/bloody.ttf' /> <file src='fonts/esquisito.ttf' /> <file src='fonts/Quarmic.ttf' /> <file src='fonts/QuartzMS.ttf' /> <file src='fx/greyscale.fx' /> <file src='fx/rt_blend.fx' /> <file src='fx/shader_null.fx' /> <file src='fx/texreplace.fx' /> <file src='images/blips/0.png' /> <file src='images/blips/2.png' /> <file src='images/blips/6.png' /> <file src='images/blips/23.png' /> <file src='images/blips/41.png' /> <file src='images/blips/48.png' /> <file src='images/blood/blood_1.png' /> <file src='images/blood/blood_2.png' /> <file src='images/blood/blood_3.png' /> <file src='images/blood/blood_4.png' /> <file src='images/blood/blood_5.png' /> <file src='images/blood/blood_6.png' /> <file src='images/hud/0.png' /> <file src='images/hud/1.png' /> <file src='images/hud/2.png' /> <file src='images/hud/3.png' /> <file src='images/hud/4.png' /> <file src='images/hud/5.png' /> <file src='images/hud/6.png' /> <file src='images/hud/7.png' /> <file src='images/hud/8.png' /> <file src='images/hud/9.png' /> <file src='images/hud/10.png' /> <file src='images/hud/11.png' /> <file src='images/hud/12.png' /> <file src='images/hud/13.png' /> <file src='images/hud/14.png' /> <file src='images/hud/15.png' /> <file src='images/hud/16.png' /> <file src='images/hud/17.png' /> <file src='images/hud/18.png' /> <file src='images/hud/22.png' /> <file src='images/hud/23.png' /> <file src='images/hud/24.png' /> <file src='images/hud/25.png' /> <file src='images/hud/26.png' /> <file src='images/hud/27.png' /> <file src='images/hud/28.png' /> <file src='images/hud/29.png' /> <file src='images/hud/30.png' /> <file src='images/hud/31.png' /> <file src='images/hud/32.png' /> <file src='images/hud/33.png' /> <file src='images/hud/34.png' /> <file src='images/hud/35.png' /> <file src='images/hud/36.png' /> <file src='images/hud/37.png' /> <file src='images/hud/38.png' /> <file src='images/hud/39.png' /> <file src='images/hud/40.png' /> <file src='images/hud/41.png' /> <file src='images/hud/42.png' /> <file src='images/hud/43.png' /> <file src='images/hud/44.png' /> <file src='images/hud/45.png' /> <file src='images/hud/46.png' /> <file src='images/ranks/admin.png' /> <file src='images/ranks/admin1.png' /> <file src='images/ranks/admin2.png' /> <file src='images/ranks/admin3.png' /> <file src='images/ranks/headadmin.png' /> <file src='images/ranks/langmod.png' /> <file src='images/ranks/leadadmin.png' /> <file src='images/ranks/mod.png' /> <file src='images/ranks/mod1.png' /> <file src='images/ranks/mod2.png' /> <file src='images/ranks/mod3.png' /> <file src='images/ranks/mod4.png' /> <file src='images/ranks/owner.png' /> <file src='images/ranks/rank1.png' /> <file src='images/ranks/rank2.png' /> <file src='images/ranks/rank3.png' /> <file src='images/ranks/rank4.png' /> <file src='images/ranks/rank5.png' /> <file src='images/ranks/rank6.png' /> <file src='images/ranks/rank7.png' /> <file src='images/ranks/rank8.png' /> <file src='images/ranks/rank9.png' /> <file src='images/ranks/rank10.png' /> <file src='images/ranks/rank11.png' /> <file src='images/ranks/rank12.png' /> <file src='images/ranks/rank13.png' /> <file src='images/ranks/rank14.png' /> <file src='images/ranks/rank15.png' /> <file src='images/ranks/rank16.png' /> <file src='images/ranks/rank17.png' /> <file src='images/ranks/rank18.png' /> <file src='images/ranks/rank19.png' /> <file src='images/ranks/rank20.png' /> <file src='images/ranks/rank21.png' /> <file src='images/ranks/rank22.png' /> <file src='images/ranks/rank23.png' /> <file src='images/ranks/trialadmin.png' /> <file src='images/ranks/trialmod.png' /> <file src='images/ranks/vip.png' /> <file src='images/textures/radardisc.png' /> <file src='images/textures/radardisca.png' /> <file src='images/angrymode.png' /> <file src='images/blank.png' /> <file src='images/cautious.png' /> <file src='images/chromium.png' /> <file src='images/clickable.png' /> <file src='images/continue_.png' /> <file src='images/easy.png' /> <file src='images/egg.png' /> <file src='images/egg_sel.png' /> <file src='images/Fuel_Dot.png' /> <file src='images/Fuel_Gage.png' /> <file src='images/GAN.png' /> <file src='images/gtamplogo.png' /> <file src='images/hazardious.png' /> <file src='images/help.png' /> <file src='images/impossible.png' /> <file src='images/info.png' /> <file src='images/loading.png' /> <file src='images/logo.png' /> <file src='images/map.png' /> <file src='images/newsbg.png' /> <file src='images/panelbg.png' /> <file src='images/party.png' /> <file src='images/phone.png' /> <file src='images/radioactive.png' /> <file src='images/skills.png' /> <file src='images/satellite_.png' /> <file src='images/title.png' /> <file src='images/vip.png' /> <file src='images/warning_dot.png' /> <file src='images/wired.png' /> <file src='images/wrench.png' /> <file src='images/youtube.png' /> <file src='images/zmbg_.png' /> <file src='images/zombieHead.png' /> <file src='mods/a51_ext.txd' /> <file src='mods/flashlight.txd' /> <file src='mods/flashlight.dff' /> <script src='radio/radiogui.Lua' type='server' /> <config src='radio/radios.xml' type='' </config> <file src='skins/13.txd' /> <file src='skins/22.txd' /> <file src='skins/56.txd' /> <file src='skins/67.txd' /> <file src='skins/68.txd' /> <file src='skins/69.txd' /> <file src='skins/70.txd' /> <file src='skins/84.txd' /> <file src='skins/92.txd' /> <file src='skins/97.txd' /> <file src='skins/105.txd' /> <file src='skins/107.txd' /> <file src='skins/108.txd' /> <file src='skins/111.txd' /> <file src='skins/126.txd' /> <file src='skins/127.txd' /> <file src='skins/128.txd' /> <file src='skins/152.txd' /> <file src='skins/162.txd' /> <file src='skins/167.txd' /> <file src='skins/188.txd' /> <file src='skins/192.txd' /> <file src='skins/195.txd' /> <file src='skins/206.txd' /> <file src='skins/209.txd' /> <file src='skins/212.txd' /> <file src='skins/229.txd' /> <file src='skins/230.txd' /> <file src='skins/258.txd' /> <file src='skins/264.txd' /> <file src='skins/274.txd' /> <file src='skins/277.txd' /> <file src='skins/280.txd' /> <file src='skins/287.txd' /> <file src='skins/bfori.txd' /> <file src='skins/bfost.txd' /> <file src='skins/bikera.txd' /> <file src='skins/bmost.txd' /> <file src='skins/bmycon.txd' /> <file src='skins/bmyri.txd' /> <file src='skins/bmyst.txd' /> <file src='skins/cwmyhb1.txd' /> <file src='skins/cwmyhb2.txd' /> <file src='skins/dwmolc2.txd' /> <file src='skins/fam1.txd' /> <file src='skins/fam2.txd' /> <file src='skins/fam3.txd' /> <file src='skins/hfybe.txd' /> <file src='skins/hmyri.txd' /> <file src='skins/lvemt1.txd' /> <file src='skins/omyri.txd' /> <file src='skins/sbfyst.txd' /> <file src='skins/sbmyri.txd' /> <file src='skins/sofyst.txd' /> <file src='skins/somyst.txd' /> <file src='skins/swmotr4.txd' /> <file src='skins/swmyst.txd' /> <file src='skins/vhfyst.txd' /> <file src='skins/vwfyst1.txd' /> <file src='skins/wfyri.txd' /> <file src='skins/wfyro.txd' /> <file src='skins/wfyst.txd' /> <file src='skins/wmoice.txd' /> <file src='skins/wmori.txd' /> <file src='skins/wmybar.txd' /> <file src='skins/wmybe.txd' /> <file src='skins/wmybp.txd' /> <file src='skins/wmycr.txd' /> <file src='skins/wmymech.txd' /> <file src='skins/wmyst.txd' /> <file src='sounds/aced.mp3' /> <file src='sounds/beat.mp3' /> <file src='sounds/bodyExplode.ogg' /> <file src='sounds/boss_1.ogg' /> <file src='sounds/boss_2.ogg' /> <file src='sounds/boss_3.ogg' /> <file src='sounds/car_close.ogg' /> <file src='sounds/car_open.ogg' /> <file src='sounds/chopper.ogg' /> <file src='sounds/explosion1.mp3' /> <file src='sounds/explosion2.mp3' /> <file src='sounds/explosion3.mp3' /> <file src='sounds/fireworks.ogg' /> <file src='sounds/gates.ogg' /> <file src='sounds/lvlup_1.mp3' /> <file src='sounds/lvlup_2.mp3' /> <file src='sounds/mgroan1.ogg' /> <file src='sounds/mgroan2.ogg' /> <file src='sounds/mgroan3.ogg' /> <file src='sounds/mgroan4.ogg' /> <file src='sounds/mgroan5.ogg' /> <file src='sounds/mgroan6.ogg' /> <file src='sounds/mgroan7.ogg' /> <file src='sounds/mgroan8.ogg' /> <file src='sounds/mgroan9.ogg' /> <file src='sounds/mgroan10.ogg' /> <file src='sounds/phonepop.ogg' /> <file src='sounds/plasma.wav' /> <file src='sounds/pm_.wav' /> <file src='sounds/rocket.ogg' /> <file src='sounds/switch.wav' /> <file src='sounds/tick.wav' /> <file src='sounds/unjamm.mp3' /> <file src='sounds/wrenching.ogg' /> <file src='zskins/zomb1.dff' /> <file src='zskins/zomb1.txd' /> <file src='zskins/zomb2.dff' /> <file src='zskins/zomb2.txd' /> <file src='zskins/zomb3.dff' /> <file src='zskins/zomb3.txd' /> <file src='zskins/zomb4.dff' /> <file src='zskins/zomb4.txd' /> <file src='zskins/zomb5.dff' /> <file src='zskins/zomb5.txd' /> <file src='zskins/zomb6.dff' /> <file src='zskins/zomb6.txd' /> <file src='zskins/zomb7.dff' /> <file src='zskins/zomb7.txd' /> <file src='zskins/zomb8.dff' /> <file src='zskins/zomb8.txd' /> <file src='zskins/zomb9.dff' /> <file src='zskins/zomb9.txd' /> <file src='zskins/zomb10.dff' /> <file src='zskins/zomb10.txd' /> <file src='zskins/zomb11.dff' /> <file src='zskins/zomb11.txd' /> <file src='zskins/zomb12.dff' /> <file src='zskins/zomb12.txd' /> <file src='zskins/zomb13.dff' /> <file src='zskins/zomb13.txd' /> <file src='zskins/zomb14.dff' /> <file src='zskins/zomb14.txd' /> <file src='zskins/zomb15.dff' /> <file src='zskins/zomb15.txd' /> <file src='zskins/zomb16.dff' /> <file src='zskins/zomb16.txd' /> <file src='zskins/zomb17.dff' /> <file src='zskins/zomb17.txd' /> <file src='zskins/zomb18.dff' /> <file src='zskins/zomb18.txd' /> <file src='zskins/zomb19.dff' /> <file src='zskins/zomb19.txd' /> <file src='zskins/zomb20.dff' /> <file src='zskins/zomb20.txd' /> <file src='zskins/zomb21.dff' /> <file src='zskins/zomb21.txd' /> <file src='zskins/zomb22.dff' /> <file src='zskins/zomb22.txd' /> <file src='zskins/zomb23.dff' /> <file src='zskins/zomb23.txd' /> <file src='zskins/zomb24.dff' /> <file src='zskins/zomb24.txd' /> <file src='zskins/zomb25.dff' /> <file src='zskins/zomb25.txd' /> <file src='zskins/zomb26.dff' /> <file src='zskins/zomb26.txd' /> <file src='zskins/zomb27.dff' /> <file src='zskins/zomb27.txd' /> <file src='zskins/zomb28.dff' /> <file src='zskins/zomb28.txd' /> <file src='zskins/zomb29.dff' /> <file src='zskins/zomb29.txd' /> <export function="createZombie" type="server"/> <export function="isPedZombie" type="server"/> </meta>
  16. This is the code: local normalScoreGorget = 0 local maxMegjelenit = 1 -------------------- for i, row in pairs(scoreboard_rows) do if (i > normalScoreGorget and elem < maxMegjelenit) then elem = elem + 1 if getElementType(row) == "player" then ---DX things here........ elseif getElementType(row) == "team" then ---DX things here........ end end end end bindKey("mouse_wheel_down", "down", function() if normalScoreGorget < #scoreboard_rows - maxMegjelenit then normalScoreGorget = normalScoreGorget + 1 end end ) bindKey("mouse_wheel_up", "down", function() if normalScoreGorget > 0 then normalScoreGorget = normalScoreGorget - 1 end end ) This is the bug: how can i fix this?.. :s
  17. Receive a cordial greeting, I am a player in the race (DM) game mode, I usually attend a large majority of servers with fame like FFS for example. I am writing to you because I am currently with some old players close to reopening a server on the platform (Team-NeO), but for that we need a very good scripter, you have a contact or friend who knows the subject and who wants to join our team to launch the server? Any concerns or interested write me. Again I appreciate your attention. Discord: Keselowski#4824
  18. Boa Noite, Queria saber qual função devo usar para criar 1 ped apenas para o player? sem os outros ver ele. Quero colocar no meu Login um ped na rua so que aparece para os outros.
  19. Boa Noite, Queria saber como faz para fazer um download http para melhorar a velocidade de download do servidor. Se tiver algum tutorial. Estava vendo aqui e fiquei curioso iria me ajudar muito isso. Obrigado
  20. Tem como por placa de licença fixa? Depois de comprar um carro, a licença não será alterada após o seu logout ???
  21. [ajuda]tem algum erro no meu script? objetivo do meu script:aparecer uma mensagem de 5 em 5 minutos,e quando um player entra,uma mensagem de bem vindo. function MChat setTimer(function() outputChatBox("Seja bem vindo,nosso discord:mtasa://54.39.46.146:22043,leia as nossas regras!! " .. math.random(1,4), root, 255, 255, 255) end, 300000, 0) function MChat2() local joinedPlayerName = getPlayerName ( source ) local serverName = getServerName( ) outputChatBox("Seja bem vindo"..joinedPlayerName.."ao servidor"..serverName.."!", source, 255, 255, 255) end addEventHandler("onPlayerJoin",getRootElement(),greetPlayer)
  22. oq acham do meu script? function MChat setTimer(function() outputChatBox("Seja bem vindo,nosso discord:mtasa://54.39.46.146:22043,leia as nossas regras!! " .. math.random(1,4), root, 255, 255, 255) end, 300000, 0) function MChat2() local joinedPlayerName = getPlayerName ( source ) local serverName = getServerName( ) outputChatBox("Seja bem vindo"..joinedPlayerName.."ao servidor"..serverName.."!", source, 255, 255, 255) end addEventHandler("onPlayerJoin",getRootElement(),greetPlayer)
  23. Bom Dia, Pessoal queria saber qual a função que devo usar para fazer uma dx mostrando a respiração de baixo da água. Exemplo: quando mergulha de baixo da agua aparece uma Hud mostrando a respiração do Player
  24. Yes, I saw the wiki and it'd be awesome if I could make it real.. So I just copied it and replaced "float x float y float z" with my custom location but the server did not even find the resource itself. I had meta.xml next to it but nothing. I want as many guarding enemy slothbots as I want. Slothbot is also running but nothing.. please help! element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = "hunting", element theModesubject = nil ] )