Jump to content

Tommy.

Members
  • Posts

    226
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Tommy.

  1. O estranho que a parte do setElementPosition em si estava certa, Vai entender, kkk
  2. Tranquilo, boa sorte com o seu projeto (:
  3. function chat (source, cmd, ...) local mens = { ... } local textMens = nil for k,v in pairs(mens) do textMens = textMens..' '..v end outputChatBox("#FEFEFE[Fora de Roleplay] "..getPlayerName(source).."#FFFFFF: "..textMens, root, 255, 255, 255, true) end addCommandHandler("fr", chat)
  4. function TeleporteFomeSedeLS ( hitElement, matchingDimension ) if source == MarkerFomeSedeLS then if getElementType ( hitElement ) == "vehicle" then return end if isPedInVehicle ( hitElement ) then return end setTimer(function(hitElement) setElementInterior(hitElement, 9) setElementPosition(hitElement, 364.93112, -9.87462, 1001.85156) setElementDimension(hitElement, 1) end, 400, 1, hitElement) fadeCamera(hitElement, false, 0.1, 0, 0, 0) setTimer(fadeCamera, 600, 1, hitElement , true, 0.5) setTimer(setCameraTarget, 600, 1, hitElement) setElementData(hitElement, "FomeSede>LS>Entrou", true) setElementData(hitElement, "FomeSede>LV>Entrou", false) setElementData(hitElement, "FomeSede>SF>Entrou", false) end end addEventHandler ( "onMarkerHit", resourceRoot, TeleporteFomeSedeLS ) EDIT: Não testei.
  5. Terceiro tópico seu sobre o mesmo assunto.
  6. marker = createMarker(0, 0, 3, "cylinder", 1.5, 255, 0, 0, 175) function dVeh() if getElementType(source) == "vehicle" then destroyElement(source) end end addEventHandler("onMarkerHit", marker, dVeh)
  7. Server-side: function Cruzar(source) setPedAnimation(source, "PLAYIDLES", "time") end addCommandHandler("pira", Cruzar) EDIT: Não testei!
  8. <meta> <info author="Gaimo" name="Trabalho test" /> <script src="data.lua" type="server"/> <script src="s.lua" type="server"/> <script src="c.lua" type="client"/> </meta> EDIT: I did not test
  9. routes = { [1] = {1345.973, -1243.223, 13.488}, [2] = {1371.559, -1234.667, 13.547}, [3] = {1389.106, -1246.985, 13.547}, } local RR = math.random(#routes) createObject ( 1210, routes[RR][1], routes[RR][2], routes[RR][3], 1, 0, 0, true) createMarker(routes[RR][1], routes[RR][2], routes[RR][3], "cylinder", 2.5, 255, 0, 0, 255, player) createBlip(routes[RR][1], routes[RR][2], routes[RR][3], 43, player)
  10. Bom, o que você pode fazer é... Colocar uma textura invisível na arma padrão e cria um objecto com a arma após isso você usa o resource "bone_attach" pra prender o objeto na mão que você deseja.
  11. function quitPreso() if getElementData(source, "preso") then local account = getPlayerAccount(source) if (account) and not (isGuestAccount(account)) then setAccountData(account, "preso", true) end end end addEventHandler("onPlayerQuit", root, quitPreso) function joinPreso() local account = getPlayerAccount(source) if getAccountData(account, "preso", true) then outputChatBox("Você deslogou Preso, e por isso foi adicionado 6 estrelas", source) setPlayerWantedLevel(source, 6) setElementInterior(source,6) setElementPosition(source, 264.1, 77.9, 1001.0) setElementData(source, "preso", true) end end addEventHandler("onPlayerLogin", root, joinPreso) EDIT: Se eu entendi bem, isso deve funcionar.
  12. anexa o meta do 'Scripts_Dxmessages'
  13. Fiz aqui rápidão para você, bom ele não repara o veículo que está na frente e sim o veículo que ele está dentro (= acl = "Mecanico" function mecRepair(source) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(acl)) then if getPedOccupiedVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) end end end addCommandHandler("reparar", mecRepair) EDIT: i did not tested
  14. você quer várias rotas ou uma rota aleatória ?
  15. marker = createMarker (2904.5390625,2941.84375,24.894870758057 -1, "cylinder", 1.2, 0 ,26 ,255, 95) -- Local Onde Pega O Emprego function giveMoney(source) if isElementWithinMarker(source, marker) then givePlayerMoney(source, 5000) end end addCommandHandler("giveMoney", giveMoney)
  16. function Comando2 () if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("PMP")) then outputChatBox("#ffff00Você não é um policial.", source, 255, 255, 255, true) return end outputChatBox("#ffff00Você CHAMOU REFORÇO ESPERE no local", source, 255, 255, 255, true) for _, p in ipairs(getElementsByType("player")) do if p ~= source then accountname = getAccountName(getPlayerAccount(p)) if isObjectInACLGroup("user."..accountname, aclGetGroup("PMP")) then if getElementData(p, "PMemprego") then outputChatBox("#ffffffPOLICIAL "..getPlayerName(source).." #ffffffCHAMOU REFORCO AGORA",p, 255,255,255,true) outputChatBox("#ff0000----------------------------------------------------------------",p, 255,255,255,true) outputChatBox("#ff0000/ir #ffffff #ffffffPara ir ate o local onde jogador chamou",p, 255,255,255,true) end end end end end addCommandHandler("reforco", Comando2) EDIT: i did not tested
  17. se não me engano o mta tem um limite de varchar no nome de usuário, abre o internal.db com SQLite Studio e apaga a conta 00000000000000000......
  18. If I understand correctly, try this. local Mark = { [1] = {1507.73,2842.96,10.82}, [2] = {-310.012,1583.59,75.56}, [3] = {-2125.71,272.62,35.48}, } Marker = {} for k, v in ipairs (Mark) do z = v[3] -1 Marker[k] = createMarker (v[1], v[2], z, "cylinder", 2, 255,255,0,0) setElementData(Marker[k],"markerPurpose", "Arena") addEventHandler ("onClientMarkerHit", resourceRoot, function (hit) if hit == localPlayer then if not enabled then exports.topBarChatMessage ( "test",2000) return end if isPedInVehicle (localPlayer) then return end guiSetVisible ( GUIEditor.window[1],true) ShowCursor (true) guiSetText (GUIEditor.label[1],"Arenaya girmek istiyor musun ?")) playSound ("tus.wav") end end) end EDIT: did i not tested
  19. I do not understand the video very much, do you want it when it's a kind of screen, is it clear?
  20. local colArea = createColRectangle(-2171.0678710938, 678.17950439453, 15, 15) local radarArea = createRadarArea(-2183.5678710938, 705.67950439453, 40, -40, 0, 255, 0, 175) local hitArea = 0 local playerData = { joinArea = {}, } function areaEnter(thePlayer, matchingDimension) if (getElementType(thePlayer) == "player") then if hitArea < 4 then hitArea = hitArea + 1 playerData.joinArea[thePlayer] = true else outputChatBox("#FFAA00*Atenção: #FFFFFFJá possui 4 assaltantes na empresa.") setElementPosition(thePlayer, 0, 0, 0) end end end addEventHandler("onColShapeHit", colArea, areaEnter) function areaExit(thePlayer, matchingDimension) if (getElementType(thePlayer) == "player") then if playerData.joinArea[thePlayer] then playerData.joinArea[thePlayer] = nil if hitArea > 0 then hitArea = hitArea - 1 end end end end addEventHandler("onColShapeLeave", colArea, areaExit) function openMyGate(Jogador) if hitArea >= 4 then if isElementWithinMarker(Jogador, markers[1]) then setTimer(function() outputChatBox(getPlayerName(Jogador).." #00ff88● #FFFFFFEsta tentando assaltar empresa da BRINKS agora", players, 255, 255, 255, true) moveObject(objetos[1], 2500, 847.20001220703, -1371.5999755859, 22.700000762939) setElementPosition(markers[1], 848.06927490234-0.2, -1374.2985839844, 3000) destroyElement(markers[1], root, false) setTimer(function() -- wait 4502ms ped1 = exports["slothBot"]:spawnBot(830.59997558594, -1372, 25, 268, 163, 0, 0, nil , 38, "guarding") -- guarda parede 1 setTimer(function() exports["slothbot"]:setBotAttackEnabled(ped1, true) end, 100, 1) setTimer( function () -- wait 200ms ped2 = exports["slothBot"]:spawnBot(830.59997558594, -1367, 25, 262, 164, 0, 0, nil , 31, "guarding")-- guarda parede 2 setTimer(function() exports["slothbot"]:setBotAttackEnabled(ped2, true) end, 100, 1) setTimer(function() -- wait 200ms ped3 = exports["slothBot"]:spawnBot(832.90002441406, -1364, 25, 180, 165, 0, 0, nil , 27, "guarding") -- guarda cliente 1 setTimer(function() exports["slothbot"]:setBotAttackEnabled(ped3, true) end, 100, 1) setTimer(function() -- wait 200ms ped4 = exports["slothBot"]:spawnBot(838, -1363.9000244141, 25, 180, 166, 0, 0, nil, 31, "guarding") -- guarda client 2 setTimer(function() exports["slothbot"]:setBotAttackEnabled(ped4, true) end, 250, 1) ped9 = exports["slothBot"]:spawnBot(843.29998779297, -1363.8000488281, 25, 186, 163, 0, 0, nil , 38, "guarding") -- guarda cliente 3 setTimer(function() exports["slothbot"]:setBotAttackEnabled(ped9, true) end, 100, 1) ped10 = exports["slothBot"]:spawnBot(830.40002441406, -1375, 25, 262, 164, 0, 0, nil, 27, "guarding") -- guarda 1 parede gerente setTimer(function() exports["slothbot"]:setBotAttackEnabled(ped10, true) end, 100, 1) ped11 = exports["slothBot"]:spawnBot(830.5, -1383, 25, 286, 165, 0, 0, nil, 31, "guarding") -- guarda 2 parede gerente setTimer(function() exports["slothbot"]:setBotAttackEnabled(ped11, true) end, 100, 1) end, 200, 1) end, 200, 1) end, 200, 1) end, 200, 1) end, 4502, 1) setPedRotation(Jogador, 87.794250488281) setElementPosition(Jogador, 847.806640625, -1374.2625732422, 22.59531211853) setPedAnimation(Jogador, "KISSING", "GF_CarSpot", 4500, false, false, false, false) setTimer(function() -- wait 1000ms triggerEvent(eventorestart, root) hitArea = 0 playerData = nil end, 1000, 1) end else outputChatBox("#FF5050*Erro: #FFFFFFPrecisa de 4 Jogadores para arrombar.") end end addCommandHandler("arrombar", openMyGate) Seja bem vindo, brother!
  21. Try this: function asdasdsas() playSound("http://www.convertmp3.io/download/?video=https://www.youtube.com/watch?v=iq7q82Cd6RI") end addCommandHandler("test",asdasdsas) EDIT: did i not test EDIT²: The API is broken, sometimes it does not start download.
×
×
  • Create New...