Jump to content

Search the Community

Showing results for tags 'reloot'.

  • 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
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. function refre:~emLoots () for i, loots in ipairs(getElementsByType("colshape")) do local itemloot = getElementData(loots,"itemloot") if itemloot then local objects = getElementData(loots,"objectsINloot") if objects then if objects[1] ~= nil then destroyElement(objects[1]) end if objects[2] ~= nil then destroyElement(objects[2]) end if objects[3] ~= nil then destroyElement(objects[3]) end end destroyElement(loots) end end triggerEvent("onServerRespawnTrees",root) insertIntoTableResidential() createPickupsOnServerStart() setTimer(refre:~emLootPoints,gameplayVariables["itemrespawntimer"],1) local theTime = getRealTime() local hour = theTime.hour local minute = theTime.minute local seconds = theTime.second if hour < 10 then hour = "0"..hour else hour = theTime.hour end if minute < 10 then minute = "0"..minute else minute = theTime.minute end if seconds < 10 then minute = "0"..seconds else seconds = theTime.second end exports.DayZ:saveLog("[DayZ] ["..hour..":"..minute..":"..seconds.."] Items have been respawned.\r\n","game") outputDebugString("[DayZ] ["..hour..":"..minute..":"..seconds.."] Items have been respawned.",0,0,255,0) end function refre:~emLootPoints () local time = getRealTime() local hour = time.hour setTimer(refre:~emLoots,60000,1) end setTimer(refre:~emLootPoints,gameplayVariables["itemrespawntimer"],1) Help me create reloot time hud and chat
×
×
  • Create New...