Jump to content

Luccas

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by Luccas

  1. local money = getPlayerMoney(localPlayer) if money > 99999999 then money = 99999999 end local cash = money local stcash = tostring(money) if #stcash == 1 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 2 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 3 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 4 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 5 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 6 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 7 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 8 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end ----[convert]----- function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end
  2. Opa, de erro no "convertNumber" Na linha 18 Erro: attempt to call global "convertNumber" (a nill value)
  3. Eu fiz assim é deu erro local money = getPlayerMoney(localPlayer) if money > 99999999 then money = 99999999 end local convertedMoney = convertNumber(stcash) --- Já tentei trocar o stcash pra cash e também não funciono. local cash = money local stcash = tostring(money) if #stcash == 1 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 2 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 3 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 4 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 5 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 6 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 7 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 8 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end ----[convert]----- function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end
  4. Olá, queira saber como faço para colocar virgulas no dinheiro. Tipo na hud o dinheiro tá 10000 queria colocar: 10,000 Código local money = getPlayerMoney(localPlayer) if money > 99999999 then money = 99999999 end local cash = money local stcash = tostring(money) if #stcash == 1 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 2 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 3 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 4 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 5 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 6 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 7 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end if #stcash == 8 then dxDrawText(" "..cash.."", x*1133, y*65, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, Font_1, "left", "top", false, false, false, false, false) dxDrawImage(x*1105, y*57, x*30, y*25, "Img/Carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end
  5. Sim deu certo obrigado! A vocês dois. Só tá dando um erro na fonte mais vou mudar a fonte
  6. unexpected symbol near
  7. Deu um erro na linha do seconds
  8. local now = getRealTime () -- Recebe os dados do momento atual. local hours = now.hour local minutes = now.minute local seconds = now.second local days = now.monthday local months = now.month local years = now.year if (hours < 10) then -- Adiciona um 0 na frente, caso seja menor que 10. hours = "0"..hours end if (minutes < 10) then minutes = "0"..minutes end if (seconds < 10) then seconds = "0"..seconds end dxDrawText(" "..hours..":"..minutes.." ", x*1133, y*100, x*956, y*65, tocolor(255, 255, 255, 255), x*1.00, dxfont0_font, "left", "center", false, false, false, false, false) não deu :"/
  9. Mais é só copiar e mudar o outputchatbox pelo dxDrawText?
  10. Opa, então eu tentei usar esses códigos que vocês me passou pra criar um dxDrawRectangle e pra colocar a hora e os minutos na hud não conseguir me ajuda?
  11. Olá eu tento fazer para que mostra o dinheiro do jogador (Isso eu já conseguir) e mostre se ele tem cnh mais essa parte de mostrar se ele tem cnh não conseguir me ajudem? Código: function revistar_jogador1 ( thePlayer, comando, nick ) if nick then if getPlayerFromPartialName ( nick ) then local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policial" ) ) then -- Acl Pra Quem Pode Usar o Comando local player_a_ser_revistado = getPlayerFromPartialName ( nick ) local Hab1 = getElementData ( player_a_ser_revistado, "DNL:Categoria(A)" ) local dinheiro_do_jogador = getPlayerMoney ( playerMoney ) local nick_do_jogador = getPlayerName ( player_a_ser_revistado ) local nick_do_policial = getPlayerName ( thePlayer ) local estrelas_de_procurado = getPlayerWantedLevel ( player_a_ser_revistado ) local policiax, policiay, policiaz = getElementPosition ( thePlayer ) -- Encontrar posição do policial local revistadox, revistadoy, revistadoz = getElementPosition ( player_a_ser_revistado ) -- Encontrar posição de quem sera revistado local dist = getDistanceBetweenPoints3D ( policiax, policiay, policiaz, revistadox, revistadoy, revistadoz ) -- Calcular a distancia entre os dois elementos if ( dist > 5 ) then -- se a distancia for 5 executara a função a seguir outputChatBox("Chegue mais perto para executar o comando", thePlayer, 255, 255, 255, true) -- Chat Box elseif ( dist < 4 )then -- Caso ao contrario a distancia for 4 executara a função a seguir setPedAnimation( thePlayer, "POLICE", "plc_drgbst_01", 3100, true, false, false, false) --outputChatBox("#000000[#ff0000POLICIA#000000] #c1c1c1O #ff0000Policial #ffffff"..nick_do_policial.." #c1c1c1esta #ff0000Revistando #c1c1c1o #ff0000Suspeito "..nick_do_jogador.."", root, 255, 255, 255, true) -- Chat Box setTimer ( function() outputChatBox("#bebebeInformações do cidadão", thePlayer, 255, 255, 255, true) outputChatBox("#bebebeDinheiro: "..getElementData(player_a_ser_revistado,"playerMoney"), thePlayer, 255, 255, 255, true) outputChatBox("#bebebeTeste: "..getElementData(player_a_ser_revistado,"DNL:Categoria(A)"), thePlayer, 255, 255, 255, true) end, 3390, 1 ) triggerClientEvent(thePlayer, "doShowDXProgressBar", thePlayer) -- Chamar evento do client end else outputChatBox("Somente policiais podem usar esse comando!", thePlayer, 255, 255, 255, true) -- Se voce nao for da acl voce nao tera permissao a este comando end end end end addCommandHandler ( "vercnh", revistar_jogador1 )
  12. Ajudou em nada. Mais obrigado, irei esperar outra pessoa me ajudar mais.
  13. Olá queria ajuda em criar um script de /vercnh. Ai mandaria uma msg no chat exemplo: Carro: Tem Moto: Tem etc. É só quem estar na acl conseguisse poderia me ajudar?
  14. Sim, mais lá só mostra da hora quero o dia entende ? Tipo faz o código e cria um dxtext
  15. Queria um script que mostre o dia real alguém pode me ajudar?
  16. Queria saber como faz um script de quando está em download fica uma imagem na tela! ME ajudem pfv?
  17. Então, eu quero colocar para quando morrer continuar com a mesma skin. Código do meu gamemode ->
  18. Cara, o painel não está abrindo quando passa no marker. Me ajuda a colocar só para um grupo na ACL conseguir abrir o painel ?
  19. Então eu quero colocar para abrir o painel quando passa em cima do marker markerarmas = createMarker(1824.381, -1984.783, 21.181, "cylinder", 1.5, 13, 130, 232, 500) function Pdx(player) dxDrawRectangle(322, 205, 181, 192, tocolor(0, 0, 0, 150), false) dxDrawRectangle(498, 201, 0, 14, tocolor(255, 255, 255, 255), false) dxDrawRectangle(321, 205, 182, 15, tocolor(92, 92, 92, 150), false) dxDrawText("Armamentos", 375, 205, 513, 209, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawRectangle(342, 242, 146, 16, tocolor(92, 92, 92, 150), false) dxDrawText("Pegar Armas", 384, 242, 482, 251, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end addEventHandler("onMarkerHit", markerarmas, Pdx) Só que não tá funcionando
  20. Não pô eu não uso o gamemode "play" eu uso outro: local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,(239)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end )
  21. Olá eu quero saber aonde mudo aonde spawna quando morre (Estou editando no spawnmanager) Código: local spawnWave = false local spawnWaveTimer = false local quedSpawns = {} addEvent ( "onSpawnpointUse" ) function createSpawnpoint ( x, y, z, rot, skin, interior, dimension ) if not tonumber(x) then outputDebugString("createSpawnpoint: Bad 'x' position specified",0,255,128,0) return false end if not tonumber(y) then outputDebugString("createSpawnpoint: Bad 'y' position specified",0,255,128,0) return false end if not tonumber(z) then outputDebugString("createSpawnpoint: Bad 'z' position specified",0,255,128,0) return false end if not tonumber(rot) then rot = 0 return false end if not tonumber(skin) then skin = 0 return false end if not tonumber(interior) then interior = 0 return false end if not tonumber(skin) then dimension = 0 return false end skin = math.ceil(skin) local sp = createElement ( "spawnpoint" ) setElementData ( sp, "posX", x ) setElementData ( sp, "posY", y ) setElementData ( sp, "posZ", z ) setElementData ( sp, "rot", rot ) setElementData ( sp, "skin", skin ) setElementData ( sp, "interior", interior ) setElementData ( sp, "dimension", dimension ) return sp end function setSpawnpointRotation ( spawnpoint, rotation ) if not isElement ( spawnpoint ) then outputDebugString("setSpawnpointRotation: Invalid variable specified as spawnpoint. Element expected, got "..type(spawnpoint)..".",0,255,128,0) return false end if getElementType ( spawnpoint ) ~= "spawnpoint" then outputDebugString("setSpawnpointRotation: Bad element specified",0,255,128,0) return false end if not tonumber(rotation) then outputDebugString("setSpawnpointRotation: Bad rotation specified",0,255,128,0) return false end setElementData ( spawnpoint, "rot", rotation ) return true end function setSpawnpointSkin ( spawnpoint, skin ) if not isElement ( spawnpoint ) then outputDebugString("setSpawnpointSkin: Invalid variable specified as spawnpoint. Element expected, got "..type(spawnpoint)..".",0,255,128,0) return false end if getElementType ( spawnpoint ) ~= "spawnpoint" then outputDebugString("setSpawnpointSkin: Bad element specified",0,255,128,0) return false end if not tonumber(skin) then outputDebugString("setSpawnpointSkin: Bad skin id specified.",0,255,128,0) return false end skin = math.ceil(skin) setElementData ( spawnpoint, "skin", skin ) return true end function setSpawnpointTeam ( spawnpoint, team ) if not isElement ( spawnpoint ) then outputDebugString("setSpawnpointTeam: Invalid variable specified as spawnpoint. Element expected, got "..type(spawnpoint)..".",0,255,128,0) return false end if getElementType ( spawnpoint ) ~= "spawnpoint" then outputDebugString("setSpawnpointTeam: Bad spawnpoint element specified",0,255,128,0) return false end if not isElement ( team ) then outputDebugString("setSpawnpointTeam: Invalid variable specified as team. Element expected, got "..type(team)..".",0,255,128,0) return false end if getElementType ( team ) ~= "team" then outputDebugString("setSpawnpointTeam: Bad team element specified",0,255,128,0) return false end skin = math.ceil(skin) setElementData ( spawnpoint, "team", skin ) return true end function getSpawnpointRotation ( spawnpoint ) if not isElement ( spawnpoint ) then outputDebugString("setSpawnpointRotation: Invalid variable specified as spawnpoint. Element expected, got "..type(spawnpoint)..".",0,255,128,0) return false end if getElementType ( spawnpoint ) ~= "spawnpoint" then outputDebugString("setSpawnpointRotation: Bad element specified",0,255,128,0) return false end return getElementData ( spawnpoint, "rot" ) or 0 end function getSpawnpointSkin ( spawnpoint ) if not isElement ( spawnpoint ) then outputDebugString("setSpawnpointSkin: Invalid variable specified as spawnpoint. Element expected, got "..type(spawnpoint)..".",0,255,128,0) return false end if getElementType ( spawnpoint ) ~= "spawnpoint" then outputDebugString("setSpawnpointSkin: Bad element specified",0,255,128,0) return false end return getElementData ( spawnpoint, "skin" ) or 0 end function getSpawnpointTeam ( spawnpoint ) if not isElement ( spawnpoint ) then outputDebugString("setSpawnpointTeam: Invalid variable specified as spawnpoint. Element expected, got "..type(spawnpoint)..".",0,255,128,0) return false end if getElementType ( spawnpoint ) ~= "spawnpoint" then outputDebugString("setSpawnpointTeam: Bad spawnpoint element specified",0,255,128,0) return false end return getElementData ( spawnpoint, "team" ) end function setSpawnWave ( enabled, wavetime ) if ( enabled ) then if not wavetime then wavetime = 15000 end spawnWave = wavetime if spawnWaveTimer then for k,v in pairs(getTimers()) do if v == spawnWaveTimer then killTimer ( v ) end end end spawnWaveTimer = setTimer ( waveSpawnPlayers, spawnWave, 0 ) return true elseif enabled == false then if spawnWaveTimer then for k,v in pairs(getTimers()) do if v == spawnWaveTimer then killTimer ( v ) end end end spawnWave = false return true else outputDebugString("setSpawnWave: Invalid variable specified as bool. Boolean expected, got "..type(enabled)..".",0,255,128,0) return false end end function spawnPlayerAtSpawnpoint ( player, spawnpoint, useWave ) if not isElement ( spawnpoint ) then spawnpoint = getRandomSpawnpoint() else if getElementType ( spawnpoint ) ~= "spawnpoint" then spawnpoint = getRandomSpawnpoint() end end if not isElement ( player ) then outputDebugString("spawnPlayerAtSpawnpoint: Invalid variable specified as player. Element expected, got "..type(player)..".",0,255,128,0) return false end if getElementType ( player ) ~= "player" then outputDebugString("spawnPlayerAtSpawnpoint: Bad player element specified",0,255,128,0) return false end local x,y,z = getElementData ( spawnpoint, "posX" ),getElementData ( spawnpoint, "posY" ),getElementData ( spawnpoint, "posZ" ) if not tonumber(x) then outputDebugString("spawnPlayerAtSpawnpoint: Specified spawnpoint lacks proper 'x' position",0,255,128,0) return false end if not tonumber(y) then outputDebugString("spawnPlayerAtSpawnpoint: Specified spawnpoint lacks proper 'y' position",0,255,128,0) return false end if not tonumber(z) then outputDebugString("spawnPlayerAtSpawnpoint: Specified spawnpoint lacks proper 'z' position",0,255,128,0) return false end local skin = getElementData ( spawnpoint, "skin" ) local rot = getElementData ( spawnpoint, "rot" ) or getElementData ( spawnpoint, "rotation" ) or getElementData ( spawnpoint, "rotZ" ) local interior = getElementData ( spawnpoint, "interior" ) local dimension = getElementData ( spawnpoint, "dimension" ) local team = getElementData ( spawnpoint, "team" ) if not ( skin ) then skin = 0 end if not ( rot ) then rot = 0 end if not ( interior ) then interior = 0 end if not ( dimension ) then dimension = 0 end if not ( team ) then team = nil end if ( useWave ) and ( spawnWave ) then quedSpawns[player] = {} quedSpawns[player].x = x quedSpawns[player].y = y quedSpawns[player].z = z quedSpawns[player].rot = rot quedSpawns[player].skin = skin quedSpawns[player].interior = interior quedSpawns[player].dimension = dimension quedSpawns[player].team = team return true else if (type(team) == "string") then team = getTeamFromName(team) end spawnPlayer ( player, x, y, z, rot, skin, interior, dimension, team ) triggerEvent ( "onSpawnpointUse", spawnpoint, player ) return true end end function waveSpawnPlayers ( ) for player, info in pairs(quedSpawns) do spawnPlayer ( player, quedSpawns[player].x, quedSpawns[player].y, quedSpawns[player].z, quedSpawns[player].rot, quedSpawns[player].skin, quedSpawns[player].interior, quedSpawns[player].dimension, quedSpawns[player].team ) end quedSpawns = {} end function getRandomSpawnpoint() local spawnpoints = getElementsByType("spawnpoint") local randNumber = math.random ( 1, #spawnpoints ) return spawnpoints[randNumber] end
  22. Olá pessoal, quero saber como faço um script que cria um marker que quando passa em cima dele destroi veículos!! Podem me ajudar? Já tentei mais não consigo
×
×
  • Create New...