Jump to content

[AYUDA] DayZ


Recommended Posts

¿Tienes ese servidor hosteado? A mi ya me ha pasado. Quizás sea porque la creación de items es muy alta y el servidor la aborta.

Lo tengo hosteado, probe a coger DayZ de otra pagina y ese si me funciono, la tasa es la misma, creo que no tiene nada que ver con hosting, ya que en mi PC funcionaba y es menos potente

Es un servidor potente (i7)

Link to comment
Hidden

Utiliza esto , me sirvio a mi para mi servidor :), ponlo en el principio de pickups.lua

Up = { { { { "nothing to see here" } } } } function Up:Up2() return "nope" end Up:Up2() 
  
getResourceRootElement(getThisResource())  
function checkResourceRequirements ( res ) 
    Up = { { { { "nothing to see here" } } } } function Up:Up2() return "nope" end Up:Up2() 
    local reason = false 
    --[[local i = string.find(getServerName(),"GTA:SA DayZ Version") 
    if not i then  
        reason = "Servername incorrect! Prefix #2 is missing (GTA:SA DayZ Version)" 
    elseif i > 1 then 
        reason = "Servername incorrect! Prefix #2 must be at the beginning (GTA:SA DayZ Version)"        
    end 
    if not string.find(getServerName(),"| community.vavegames.net |",0,true) then 
        reason = "Servername incorrect! Prefix #1 is missing (| community.vavegames.net |)" 
    end 
    if string.find(string.lower(getServerName()),"official") then 
        reason = "Servername incorrect! You are not an 'official' server!" 
    end]] 
    --use max players defined in the server config as it can't be changed after resource start unlike getMaxPlayers which can be altered using setMaxPlayers 
    --[[if tonumber(getServerConfigSetting("maxplayers")) > 77 then 
        reason = "Too many slots (maximum: 77), stopping resource..." 
    end]] 
    if getResourceName(getThisResource()) ~= "DayZ" then 
        reason = "Игровой ник of resource does not match (DayZ)!" 
    end 
    if reason ~= false then 
        outputServerLog ( "Resource " .. getResourceName(res) .. " wasn't started: ("..reason..")." ) 
        outputChatBox ( "Resource " .. getResourceName(res) .. " wasn't started: ("..reason..").", getRootElement(), 255, 255, 255 ) 
        outputConsole ( "Resource " .. getResourceName(res) .. " wasn't started: ("..reason..")." ) 
        outputDebugString ( "Resource " .. getResourceName(res) .. " wasn't started: ("..reason..")." ) 
        cancelEvent() 
    end  
end 
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), checkResourceRequirements ) 
  

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...