Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 20/09/23 in all areas

  1. trigging in the for is not the most appropriate, the best would be outside the for for i, k in ipairs(Bomb2) do if (isElementAttached(Bomb2[i])) then detachElements(Bomb2[i], helic[1]) plantedBombs = plantedBombs + 1 outputChatBox("Bomb has been successfully installed, Do the same with the rest!", root, 34, 139, 34) outputChatBox(plantedBombs) ---- This returns what it should return end end triggerClientEvent(player, "updatePlantedBombs", root, plantedBombs)
    1 point
  2. addEventHandler("onPlayerWasted", root, function() local spawn = math.random(1, 3) local team = getPlayerTeam(source) local skin = getElementModel(source) local player = source if spawn == 1 then setTimer(spawnPlayer, 3000, 1, player, x, y, z, math.random(0, 360), skin, 0, 0, team) elseif spawn == 2 then setTimer(spawnPlayer, 3000, 1, player, x, y, z, math.random(0, 360), skin, 0, 0, team) elseif spawn == 3 then setTimer(spawnPlayer, 3000, 1, player, x, y, z, math.random(0, 360), skin, 0, 0, team) end end )
    1 point
×
×
  • Create New...