Jump to content

DNL291

Retired Staff
  • Posts

    3,875
  • Joined

  • Days Won

    67

Everything posted by DNL291

  1. 22003(UDP) 22126(UDP) 22005(TCP). sim Para verificar se as portas do seu servidor estao abertas, digite openports no Console do servidor.
  2. Abra o menu iniciar, em seguida abra o 'executar', nele digite, cmd e de enter, irá abrir o prompt de comando. digite ipconfig para obter as informacoes da rede. pegue seu gateway padrao. Voce deve colocar o gateway padrao no navegador em seguida vai pedir um login, as vezes é: username: admin password: admin. só voce pesquisar o login de seu modem no google. Portas: 22003(UDP) 22126(UDP) 22005(TCP). 10 points do que?
  3. Car mod https://community.multitheftauto.com/index.php?p= ... ls&id=4633
  4. DNL291

    fuel gui

    p1 = createMarker (1878.9757080078,1811.5299072266,12.743692398071, "cylinder", 5, 0, 255, 0, 100) WindowP = guiCreateWindow(150, 300, 300, 200, "Gas", false ) guiSetVisible(WindowP, false) ButtonP2 = guiCreateButton(25,50,250,50,"Buy Fuel",false,WindowP) ButtonP1 = guiCreateButton(25,150,250,50,"Accept",false,WindowP) function closePaysapray() guiSetVisible(WindowP, false) showCursor(false) end function onEnterPns (player) if ( isPedInVehicle(localPlayer) ) then guiSetVisible(WindowP, true) showCursor(true) elseif not ( isPedInVehicle(localPlayer) ) then guiSetVisible(WindowP, false) showCursor(false) end end addEvent("onGasRefill",true) function setUp(startedResource) if(startedResource == getThisResource()) then oX,oY,oZ = getElementPosition(getLocalPlayer()) fBar = guiCreateProgressBar(598,158,154,25,false) fLabel = guiCreateLabel(615,140,155,25,"Fuel:",false) setTimer(fuelDepleting,500,0) distance = 0 distanceOld = 0 end end addEventHandler("onClientResourceStart",getRootElement(),setUp) function drawFuelBar() fBar = guiCreateProgressBar(598,158,154,25,false) guiSetVisible(fBar,false) end addEventHandler("onClientPlayerJoin",getRootElement(),drawFuelBar) function monitoring() if(isPedInVehicle(getLocalPlayer())) then vehicle = getPedOccupiedVehicle(getLocalPlayer()) x,y,z = getElementPosition(getLocalPlayer()) distance = distance + getDistanceBetweenPoints3D(x,y,z,oX,oY,oZ) oX = x oY = y oZ = z end end addEventHandler("onClientRender",getRootElement(),monitoring) function fuelDepleting() if(isPedInVehicle(getLocalPlayer())) then vehicle = getPedOccupiedVehicle(getLocalPlayer()) guiSetVisible(fBar,true) if(getElementData(vehicle,"fuel") == false) then fuel = math.random(85,100) setElementData(vehicle,"fuel",tonumber(fuel)) end currentFuel = tonumber(getElementData(vehicle,"fuel")) if(currentFuel > 0) then setElementData(vehicle,"fuel",tostring(currentFuel - math.floor(distance - distanceOld)/200)) currentFuel = tonumber(getElementData(vehicle,"fuel")) guiProgressBarSetProgress(fBar,currentFuel) guiSetText(fLabel,"Fuel: " .. math.floor(currentFuel) .. "%") distanceOld = distance else toggleControl("accelerate",false) toggleControl("brake_reverse",false) guiSetText(fLabel,"No fuel") end else guiSetText(fLabel,"") guiProgressBarSetProgress(fBar,0) guiSetVisible(fBar,false) end end function setFuel(player,seat,jacked) if(getElementData(vehicle,"fuel") == false) then fuel = math.random(70,100) setElementData(source,"fuel",tonumber(fuel)) end end addEventHandler("onClientVehicleEnter",getRootElement(),setFuel) function setFuelOnRespawn() local fuel = math.random(70,100) setElementData(source,"fuel",tonumber(fuel)) end addEventHandler("onClientVehicleRespawn",getRootElement(),setFuelOnRespawn) function enableDriving(player,seat) toggleControl("accelerate",true) toggleControl("brake_reverse",true) end addEventHandler("onClientVehicleExit",getRootElement(),enableDriving) local timer function refillGas() takePlayerMoney(400) if ( isPedInVehicle(getLocalPlayer()) ) then local vehicle = getPedOccupiedVehicle(getLocalPlayer()) timer = setTimer(setVehicleFuel, 650, 0) toggleControl("accelerate",true) toggleControl("brake_reverse",true) end end addCommandHandler("refill",refillGas) function _killTimer() if ( isTimer(timer) ) then killTimer(timer) end end addEventHandler("onClientMarkerLeave", p1, _killTimer) addEventHandler("onClientPlayerWasted", _killTimer) function setVehicleFuel() setElementData(vehicle, "fuel", getElementData(vehicle, "fuel")+2) if ( tonumber(getElementData(vehicle, "fuel")) >= 100 ) and ( isTimer(timer) ) then killTimer(timer) end if ( tonumber(getElementData(vehicle, "fuel")) > 100 ) then setElementData(vehicle, "fuel", 100) end end function setTimerRefillGas(enabled) --if(isPlayerInVehicle(getLocalPlayer())) then --if(enabled == true) then -- refillTimer = setTimer(timerRefillGas,10,0) --else -- killTimer(timerRefillGas) --end --else --outputChatBox("You have to be in vehicle to refill!") setElementData(vehicle,"fuel",tostring(100)) --end end addEventHandler("onGasRefill",getRootElement(),setTimerRefillGas) function timerRefillGas() if(isPedInVehicle(getLocalPlayer())) then local player = getLocalPlayer() local vehicle = getPedOccupiedVehicle(player) local fuel = getElementData(vehicle,"fuel") if(tonumber(fuel) < 100) then setElementData(vehicle,"fuel",100) --setElementData(vehicle,"fuel",tostring(fuel + 1)) distanceOld = distance end end end addEventHandler( "onClientGUIClick", ButtonP1, closePaysapray ) addEventHandler( "onClientGUIClick", ButtonP2, refillGas ) addEventHandler( "onClientMarkerHit", p1, onEnterPns ) addEventHandler("onClientMarkerLeave", p1, closePaysapray) addEventHandler("onClientPlayerWasted", closePaysapray)
  5. local obtenerNombre = getPlayerName(source) function obtenerName() outputChatBox(" #00FF00 "..obtenerNombre.." , Tu nombre se te cambiara por tu nombre de cuenta cuando te desconectes te regresaremos tu nombre ", source, 255, 0, 0, true) end addEventHandler("onPlayerJoin", getRootElement(), obtenerName) function setearName() accountName = getAccountName( getPlayerAccount ( source ) ) outputChatBox(" #00FF00"..obtenerNombre.." , Ahora tu Nombre se cambio al Nombre de tu cuenta ("..accountName..") ", source, 255, 0, 0, true) setPlayerName( source, accountName ) end addEventHandler("onPlayerLogin", getRootElement(), setearName) function debolberName() setPlayerName( source, obtenerNombre ) end addEventHandler("onPlayerQuit", getRootElement(), debolberName)
  6. The variable 'obtenerNombre' is not a global variable
  7. Car mods https://community.multitheftauto.com/index.php?p= ... ls&id=4592 https://community.multitheftauto.com/index.php?p= ... ls&id=4593 https://community.multitheftauto.com/index.php?p= ... ls&id=4594 https://community.multitheftauto.com/index.php?p= ... ls&id=4598 Skin mod https://community.multitheftauto.com/index.php?p= ... ls&id=4596
  8. If you downloaded the gamemode gangwar[rus]_by_spawn logically is Russian.
  9. DNL291

    fire

    worked for me. anyway that's not what you want. not copied from anyone.
  10. DNL291

    fire

    addEventHandler("onClientPedDamage", root, cancelEvent)
  11. DNL291

    fire

    Lua is case sensitive.
  12. What do you mean exactly by that? server-side scripts no are downloaded
  13. Para iniciar seu mapa editado automaticamente no server, abra o arquivo de configuracao mtaserver e adicione seu recurso embaixo. por exemplo: Assim, sempre que voce iniciar o map editor, seu mapa já ficará iniciado no server, e o map editor carregará ele. Se voce quiser criar um outro mapa, clique em 'new' e quando terminar, salve em algum mapa de qualquer gamemode e entao, só voce pegar o mapa com o meta.xml e passar os 2 arquivos para uma pasta. se voce quiser que ele inicie automaticamente faça como eu disse acima.
  14. column = guiGridListAddColumn(GUIEditor_Grid[1],"Jugadores",0.80) guiSetText( GUIEditor_Label[1], "Nickname : "..playername"" )
  15. addEventHandler("onClientPlayerJoin", resourceRoot, function () if isTransferBoxActive() then setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end )
  16. Se voce quer criar varios mapas, voce nao pode salvar na pasta(ficheiro) editor_dump, porque ele ira substituir o outro mapa existente. Voce pode salvar em qualquer outro mapa existente. ou criar uma pasta para salvar na mesma. tambem pode sempre salvar na pasta editor_dump e copiar o codigo do arquivo .map copiar o arquivo meta.xml e fazer seu mapa.
  17. local x,y,z = getElementPosition(source) local vehicle = createVehicle(411, x, y, z) warpPedIntoVehicle(source, vehicle)
  18. still have these. https://community.multitheftauto.com/index.php?p= ... ls&id=4524 https://community.multitheftauto.com/index.php?p= ... ls&id=4525 https://community.multitheftauto.com/index.php?p= ... ls&id=4526 https://community.multitheftauto.com/index.php?p= ... ls&id=4527 https://community.multitheftauto.com/index.php?p= ... ls&id=4528 https://community.multitheftauto.com/index.php?p= ... ls&id=4529 https://community.multitheftauto.com/index.php?p= ... ls&id=4530 https://community.multitheftauto.com/index.php?p= ... ls&id=4531
  19. ban the user. https://community.multitheftauto.com/index.php?p= ... ls&id=4571 https://community.multitheftauto.com/index.php?p= ... ls&id=4570 https://community.multitheftauto.com/index.php?p= ... ls&id=4569 https://community.multitheftauto.com/index.php?p= ... ls&id=4568 https://community.multitheftauto.com/index.php?p= ... ls&id=4567 https://community.multitheftauto.com/index.php?p= ... ls&id=4566 https://community.multitheftauto.com/index.php?p= ... ls&id=4565 https://community.multitheftauto.com/index.php?p= ... ls&id=4564 https://community.multitheftauto.com/index.php?p= ... ls&id=4563 https://community.multitheftauto.com/index.php?p= ... ls&id=4562 https://community.multitheftauto.com/index.php?p= ... ls&id=4561 https://community.multitheftauto.com/index.php?p= ... ls&id=4560 https://community.multitheftauto.com/index.php?p= ... ls&id=4559 https://community.multitheftauto.com/index.php?p= ... ls&id=4558 https://community.multitheftauto.com/index.php?p= ... ls&id=4557 https://community.multitheftauto.com/index.php?p= ... ls&id=4556 https://community.multitheftauto.com/index.php?p= ... ls&id=4555 https://community.multitheftauto.com/index.php?p= ... ls&id=4554 https://community.multitheftauto.com/index.php?p= ... ls&id=4553 https://community.multitheftauto.com/index.php?p= ... ls&id=4552 https://community.multitheftauto.com/index.php?p= ... ls&id=4551 https://community.multitheftauto.com/index.php?p= ... ls&id=4550 https://community.multitheftauto.com/index.php?p= ... ls&id=4549 https://community.multitheftauto.com/index.php?p= ... ls&id=4548 https://community.multitheftauto.com/index.php?p= ... ls&id=4547 https://community.multitheftauto.com/index.php?p= ... ls&id=4546 https://community.multitheftauto.com/index.php?p= ... ls&id=4545 https://community.multitheftauto.com/index.php?p= ... ls&id=4544 https://community.multitheftauto.com/index.php?p= ... ls&id=4543 https://community.multitheftauto.com/index.php?p= ... ls&id=4542 https://community.multitheftauto.com/index.php?p= ... ls&id=4541 https://community.multitheftauto.com/index.php?p= ... ls&id=4540 https://community.multitheftauto.com/index.php?p= ... ls&id=4539 https://community.multitheftauto.com/index.php?p= ... ls&id=4538 https://community.multitheftauto.com/index.php?p= ... ls&id=4537 https://community.multitheftauto.com/index.php?p= ... ls&id=4536 https://community.multitheftauto.com/index.php?p= ... ls&id=4535 https://community.multitheftauto.com/index.php?p= ... ls&id=4534 https://community.multitheftauto.com/index.php?p= ... ls&id=4533 https://community.multitheftauto.com/index.php?p= ... ls&id=4532 sorry for the number of links.
  20. skins mod https://community.multitheftauto.com/index.php?p= ... ls&id=4516 https://community.multitheftauto.com/index.php?p= ... ls&id=4523
  21. Explique qual o poblema mais especificamente, Voce quer acessar o arquivo do mapa que voce editou? Se voce deletou o mapa, editor_dump e editor_test que voce editou, provavelmente voce perdeu ele. Nao entendi porque voce quer deletar essas pastas, voce pode explicar melhor.
  22. DNL291

    increase damege

    setWeaponProperty ?
  23. DNL291

    Fix Images Bug

    resize with guieditor is simple and fast,will hardly get out of the way he wants, if done manually
  24. DNL291

    Fix Images Bug

    Start the resource guieditor on your server with your image on the screen and resize it with the guieditor, (right click the mouse button) and resize. then click on Print data and get the positions.
  25. DNL291

    Fix Images Bug

    as I said, you need to resize the image, use the guieditor.
×
×
  • Create New...