AnnaBelle

Members
  • Content count

    76
  • Joined

  • Last visited

Community Reputation

0 Neutral

About AnnaBelle

  • Rank
    Transformer

Details

  • Gang
    MTA DayZ
  • Location
    Brazil
  • Occupation
    sa
  • Interests
    help
  1. -- Server Log = {} local cover = "========================================" function Log:Time ( ) local _time = getRealTime ( ) local _second = _time.second local _minute = _time.minute local _hour = _time.hour local _date = _time.monthday local _month = getMonthName ( _time.month + 1 ) local _year = _time.year + 1900 return _year, _month, _date, _hour, _minute, _second end function Log:Write ( _str ) local _year, _month, _date, _hour, _minute, _second = Log:Time ( ) local filePath = "logs/" .. _year .. "/" .. _month .. "/" .. _date .. ".log" if not ( fileExists ( filePath ) ) then fileCreate ( filePath ) local file = fileOpen ( filePath ) fileWrite ( file, cover .. "\n=Log generated on " .. _date .. " of " .. _month .. ", " .. _year .. "=\n" .. cover .. "\n" ) fileClose ( file ) end local file = fileOpen ( filePath ) fileSetPos ( file, fileGetSize ( file ) ) local _str = tostring ( _str ) fileWrite ( file, "\n[" .. _hour .. ":" .. _minute .. ":" .. _second .. "] " .. _str ) fileFlush ( file ) fileClose ( file ) end months = {"January","February","March","April","May","June","July","August","September","October","November","December"} function getMonthName ( _month ) return months [ _month ] end function outputLog ( _str ) Log:Write ( _str ) end debugTypes = {"INFO","ERROR","WARNING","INFO"} function getDebugLevelFromID ( id ) return debugTypes [ id + 1 ] end addEventHandler("onDebugMessage", root, function ( _msg, _level, _file, _line ) if not _line then _line = "" Log:Write ( getDebugLevelFromID ( _level ) .. ": " .. _file .. ": " .. _line .. ": " .. _msg ) end end ) addEventHandler("onPlayerLogin", root, function ( _, _acc ) local _acc = getAccountName ( _acc ) local _clan = getIPFromName ( getElementData ( source,"Group" ) ) Log:Write ( "LOGIN: " .. getPlayerName(source) .. " successfully logged in as '" .. _acc .. "' (CLAN: ".._clan")" ) end ) function getIPFromName ( str ) return playerIPs [ str ] end -- Meta <script src = "Server.lua" type = "server" /> <export function = "outputLog" type = "server" /> Is not logging per day.
  2. http://prntscr.com/f0hksv[/img] alguem sabe como resolver
  3. isso já resolvi erra um problema de download de serves, quando jogador entrava em um server e voltava, pro outro acabava bugando. mas agora tem outro problema as parede fica sumindo e aparecendo, se você estiver longe ou perto.
  4. mas eu testei com essa linha
  5. testei nos dois modo funcionou,mas na hr de por um nome maior que 4 letras não foi function nameCod() name = getPlayerName(source) if (string.len(name) <= 4) then cancelEvent() outputChatBox("Seu nome muito curto, minimo 4 letras.", source, 255, 0, 0,true) return end end addEventHandler("onPlayerJoin",root,nameCod) addEventHandler("onPlayerChangeNick",root,nameCod)
  6. function nameCod(source) name = getPlayerName(source) if (#name >= 4) then cancelEvent() outputChatBox("Seu nome muito curto, minimo 4 letras.", source, 255, 0, 0,true) return end end) addEventHandler("onPlayerJoin",root,nameCod) addEventHandler("onPlayerChangeNick",root,nameCod) addEventHandler("onPlayerConnect",root,nameCod)
  7. Eu acho que é por algo que os players faz no servidor que sobe o processamento do servidor
  8. mais ou menos vou ter que testar pra ver se vai funcionar sabe porque acontece isso ERROR: not enough memory
  9. @DNL291 Obrigado pela sua ajuda mas descobri como pode fazer isso <3
  10. createObject(6966,826.79999,-2107.2,-48.2,0,0,90) createObject(6966,826.79999,-2127.7,-48.21,0,0,90) createObject(3749,836.40002,-2070.1001,17.8,0,0,0) createObject(3084,852.29999,-2070.1001,13.6,0,0,0) createObject(3084,820.5,-2070.1001,13.6,0,0,0) createObject(10841,815,-2081.6001,19.9,0,0,90) createObject(10841,815,-2104.3999,19.9,0,0,90) createObject(10841,815,-2127.2,19.9,0,0,90) createObject(10841,857.79999,-2081.6001,19.9,0,0,90) createObject(10841,857.79999,-2104.3999,19.9,0,0,90) createObject(10841,857.79999,-2127.2,19.9,0,0,90) createObject(10841,847.09998,-2137.8999,19.9,0,0,0) createObject(10841,825.70001,-2137.8999,19.9,0,0,0) createObject(3084,820.5,-2070.1001,16.8,0,0,0) createObject(3084,820.5,-2070.1001,20,0,0,0) createObject(3084,852.29999,-2070.1001,16.8,0,0,0) createObject(3084,852.29999,-2070.1001,20,0,0,0) createObject(8417,836.40002,-2090.1001,21.59,0,180,0) createObject(6976,818.09998,-2118,12.8,0,0,270) (model,x,y,z,rx,ry,rz), tinha feito assim, para ver se o jogador iria parar de bugar ,mas não aconteceu,isso seria as paredes,teto chão
  11. tem alguma ideia de fazer uma colisão diferente
  12. Vou tentar especular pra ver se faço algo pra não bugar entendi agora tem que fazer uma colisão diferente das outras
  13. function clearAttachmentData(element) attached_ped[element] = nil attached_bone[element] = nil attached_x[element] = nil attached_y[element] = nil attached_z[element] = nil attached_rx[element] = nil attached_ry[element] = nil attached_rz[element] = nil end function forgetDestroyedElements() if not attached_ped[source] then return end clearAttachmentData(source) end addEventHandler(script_serverside and "onElementDestroy" or "onClientElementDestroy",root,forgetDestroyedElements) function forgetNonExistingPeds() local checkedcount = 0 while true do for element,ped in pairs(attached_ped) do if not isElement(ped) then clearAttachmentData(element) end checkedcount = checkedcount+1 if checkedcount >= 1000 then coroutine.yield() checkedcount = 0 end end coroutine.yield() end end clearing_nonexisting_peds = coroutine.create(forgetNonExistingPeds) setTimer(function() coroutine.resume(clearing_nonexisting_peds) end,1000,0)
  14. Como usar a função setElementCollisionsEnabled para criar colisão na parede base no MTA
  15. [2017-04-20 14:36:40] ERROR: [DayZ]\DayZ\bone_attach\attach_func.lua:117: cannot resume dead coroutine [string "?"] [DUP x5] [2017-04-20 14:36:40] ERROR: [DayZ]\DayZ\bone_attach\attach_func.lua:117: cannot resume dead coroutine [string "?"]