Mais Vistos

Mostrando postagens com marcador tutoriais. Mostrar todas as postagens

Hosts confiaveis para seu server

By : Unknown
1º LegendsHost LTDA

Legends Host - Ja usei o host deles é um dos melhores
barato e o melhor não da calote
Link: Aqui


2º DTEN HOST
host bom mais to tem vps
Link:aqui


Esses dois hosts são de qualidade e confiáveis
Tag : , ,

Aumentando ou Diminiundo ping do serve

By : Unknown
Fala pessoal fis este post uma vez mais alguem escluiu mais ta ai

--- Como aumentar ping do seu serve


1- Va na pasta do seu serve 

-- Procure por / Editor_Cliet.lua

abra com o bloco de notas e   procura

gameplayVariables["ping"] = 600 -- Checks if ping is over the set amount. DEFAULT: 600

Onde ta  =600 -- voce coloca o valor q kiser 

eu coloquei 99999999 mais voce escolhe o valor


---------------------------------------------------| Espero que ajude | -----------------------------------------------------




Tag : ,

Sistema de Desmaio

By : Unknown
mta[Z] - Primeira Comunidade Brasileira de MTA:DayZ Mod

Como o italo posto o sistema e quase ninguem conseguiu colocar , vai um pequeno tutorial..(creditos:italo)
O sistema pode ter bugs , então Teste antes de colocar no seu server com players :/


1-Vá Até o Login.lua e procure por:
playerLogin
Desça até o final do script e la no final debaixo de:


triggerClientEvent(player, "onClientPlayerDayZLogin", player)


Adicione


    [Código]            
  1. triggerEvent ( "putPlayerInComaServer", player )
  2. Agora vá ate SurvivorSystem.lua e vá no final do script e adicione:
  3. local dyingPlayers = {}
  4. putPlayerInComaServer = function ()
  5.    if getElementData ( source, "blood" ) <= 2000 and getElementData ( source, "blood" ) > 0 then
  6.       setPedAnimation ( source, "BEACH", "Lay_Bac_Loop", -1, true, false, false )
  7.       toggleAllControls ( source, false, true, false )
  8.       toggleControl ( source, "jump", false )
  9.       setElementData ( source, "inComa", true )
  10.       table.insert ( dyingPlayers, source )
  11.       setTimer ( function ( player )
  12.          dyingPlayers[tostring(player)] = false
  13.          if isElement ( player ) then
  14.             if getElementData ( player, "inComa" ) then
  15.                setElementData ( player, "isDead", true )
  16.                toggleAllControls ( player, true )
  17.                triggerEvent ( "kilLDayZPlayer", player )
  18.             end
  19.          end
  20.       end, 120000, 1, source )
  21.    end
  22. end
  23. addEvent("putPlayerInComa", true)
  24. addEventHandler("putPlayerInComa", getRootElement(), putPlayerInComaServer)
  25. function useAdrenalin ( player )
  26.    local x,y,z = getElementPosition ( player )
  27.    local found = 0
  28.    for i, v in ipairs ( dyingPlayers ) do
  29.       if isElement ( v ) then
  30.          if getElementData ( v, "inComa" ) then
  31.             local x2, y2, z2 = getElementPosition ( v )
  32.             if getDistanceBetweenPoints3D ( x,y,z, x2, y2, z2 ) < 3 then
  33.                found = 1
  34.                toggleAllControls ( v, true )
  35.                if getElementData(v, "brokenbone") then
  36.                   toggleControl ( v, "jump", false )
  37.                end
  38.                setElementData ( v, "inComa", false )
  39.                setPedAnimation ( v, false )
  40.                toggleAllControls ( v, false, false, false )
  41.                table.remove ( dyingPlayers, i )
  42.                break
  43.             end
  44.          else
  45.             dyingPlayers[i] = nil
  46.          end
  47.       else
  48.          dyingPlayers[i] = nil
  49.       end
  50.    end
  51.    if found == 1 then
  52.       setElementData ( player, "Painkiller", getElementData ( player, "Painkiller" ) - 1 )
  53.    end
  54. end
Agora vá até o survivorSystem_client


E PROCURE POR:
playerGetDamageDayZ




VÁ ATÉ A ESSA LINHA


if number == 3 then
            setElementData(getLocalPlayer(),"pain",true)




DEBAIXO DELA ADICIONE

    [Código]            
  1. end
  2.    if getElementData(getLocalPlayer(), "blood") <= 2000 and getElementData(getLocalPlayer(), "blood") > 0 and not getElementData(getLocalPlayer(), "isDead") == true then
  3.       triggerServerEvent("putPlayerInComa", getLocalPlayer() ) -- кома, потом убрать
  4.    end
Agora Procure Por CheckStats


Troque isso:


if getElementData(getLocalPlayer(),"blood") < 0 then
        if not getElementData(getLocalPlayer(),"isDead") then
            triggerServerEvent("kilLDayZPlayer",getLocalPlayer(),false,false)
        end
    end
end 




POR ISSO:

    [Código]            
  1. if getElementData(getLocalPlayer(), "blood") < 0 and not getElementData(getLocalPlayer(), "isDead") then
  2.          triggerServerEvent("kilLDayZPlayer", getLocalPlayer(), false, false)
  3.          toggleAllControls ( true )
  4.          setElementData ( localPlayer, "inComa", false )
  5.       end
  6.    end
  7. end
by: V!sh^^

Tag : ,

- Copyright © MTA DayZ Baixe Tudo - Mta Dayz - Powered by Blogger - Designed by Davi_EmanuelVs: 1.0completa-