magicplayerc

Members
  • Content Count

    28
  • Joined

  • Last visited

Community Reputation

0 Neutral

About magicplayerc

  • Rank
    Advanced Member
  • Birthday 24/05/2000

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. magicplayerc

    parar animaçao

    nada esta adiantando
  2. magicplayerc

    parar animaçao

    setPedAnimation(source,false) ?
  3. magicplayerc

    parar animaçao

    quero que animaçao do jogador pare quando executar o comando em outro marker function escada(Jogador) if isElementWithinMarker(Jogador, balcao2) then setElementPosition(balcao2, 2413.03320, -1494.10571, 24.05586) destroyElement (balcao2) setPedRotation(Jogador, 190) setElementPosition(Jogador, 2413.03320, -1494.10571, 24.05586) setPedAnimation(Jogador,"CARRY", "crry_prtial", 0.0, false, false, false) outputChatBox("#00FA9A[Soldador] #ffffffVoce esta soldando a peça do navio aguarde 1 minuto para terminar", Jogador, 255, 255, 255, true) end,5000,1) setTimer( function () escada1 = createObject ( 1437, 418.099609375, -1349.2998046875, 22.60000038147, 337.99987792969, 0, 217.99072265625) escada2 = createObject ( 1437, 416.2001953125, -1346.900390625, 17.700000762939, 337.99987792969, 0, 217.99072265625) escada3 = createObject ( 1437, 414.400390625, -1344.599609375, 13, 337.99987792969, 0,217.99072265625) triggerClientEvent(Jogador, "doShowProgressBar", Jogador) triggerEvent(eventorestart, root) end, 1000, 1) end end addCommandHandler("pegar",escada)
  4. dou /trabalhar e vou ate o local do marker de trabalho digito /soldar ele funciona tudo mais quando eu dou function Soldadortrabalhar ( source, cmd ) if not isElementWithinMarker(source, Markersoldador) then return end if getElementData(source, "soldador", true) then outputChatBox("#00FA9AVoçe ja esta trabalhando",source,255,255,255,true) else outputChatBox("#00FA9AVoçe iniciou o trabalho de soldador",source,255,255,255,true) setElementData(source, "soldador", true) setPedSkin(source, 45) setElementVisibleTo(criartrampo, source, true) setElementVisibleTo(criartrampo2, source, true) setTimer( function () triggerEvent(eventorestart, root) end, 1000, 1) end end addCommandHandler("trabalhar", Soldadortrabalhar) function Sair ( source ) if getElementData(source, "soldador") == true then setElementData(source, "soldador", false) setPedSkin(source, 0) setElementVisibleTo(criartrampo, source, false) setElementVisibleTo(criartrampo2, source, false) outputChatBox("#00FA9AVoce saiu do emprego de soldador",source,255,255,255,true) else setTimer( function () triggerEvent(eventorestart, root) end, 1000, 1) end end addCommandHandler("sairemprego", Sair) /sairemprego nao consigo iniciar novamente /trabalhar pois ele nao apareçe marker mais
  5. magicplayerc

    marker nao reinicia

    quando digito /trabalhar inicia os marker quando inicio funçao do marker de trabalho ex: /soldar funciona normalmente mas quando eu digito /sairemprego e novamente volto ao local do /trabalhar o marker nao se inicia mais function Soldadortrabalhar ( source, cmd ) if not isElementWithinMarker(source, Markersoldador) then return end if getElementData(source, "soldador", true) then outputChatBox("#00FA9AVoçe ja esta trabalhando",source,255,255,255,true) else outputChatBox("#00FA9AVoçe iniciou o trabalho de soldador",source,255,255,255,true) setElementData(source, "soldador", true) setPedSkin(source, 45) setElementVisibleTo(criartrampo, source, true) setElementVisibleTo(criartrampo2, source, true) setTimer( function () triggerEvent(eventorestart, root) end, 1000, 1) end end addCommandHandler("trabalhar", Soldadortrabalhar) function Sair ( source ) if getElementData(source, "soldador") == true then setElementData(source, "soldador", false) setPedSkin(source, 0) setElementVisibleTo(criartrampo, source, false) setElementVisibleTo(criartrampo2, source, false) outputChatBox("#00FA9AVoce saiu do emprego de soldador",source,255,255,255,true) else setTimer( function () triggerEvent(eventorestart, root) end, 1000, 1) end end addCommandHandler("sairemprego", Sair)
  6. OBRIGADOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO ❤️
  7. function msgmarker(source) outputChatBox("#00ff88● #ffffffDigite /soldar para soldar peça do navio", source, 255, 255, 255, true) end addEventHandler("onMarkerHit", criartrampo, msgmarker) function Sair ( source ) if getElementData(source, "soldador", true) then setElementData(source, "soldador", false) setPedSkin(source, 0) setElementVisibleTo(criartrampo, source, false) outputChatBox("#00FA9AVoce saiu do emprego de soldador",source,255,255,255,true) else -- NHE setTimer( function () triggerEvent(eventorestart, root) end, 1000, 1) end end addCommandHandler("sairemprego", Sair)
  8. QUERO QUE ESSES 2 ID DE VEICULO NAO FICA PROCURADO QUANDO PEGA O CARRO SEM ACL AJUDA ACL = "Admin" function giveLevelOnEnterVehicle(source) local accName = getAccountName(getPlayerAccount(source)) if (isObjectInACLGroup("user." .. accName, aclGetGroup(ACL))) then outputChatBox("", source, 255, 255, 255, true) else local id = getElementModel(source) if id == 411 or id == 468 then outputChatBox("", source, 255, 255, 255, true) return end if getPlayerWantedLevel(source) < 6 then setPlayerWantedLevel(source, getPlayerWantedLevel(source) + 1) end outputChatBox("", source, 255, 255, 255, true) end end addEventHandler("onVehicleEnter", getRootElement(), giveLevelOnEnterVehicle)
  9. local playerData = { joinArea = {}, } local colArea = createColRectangle(1721.97595, -1434.01538, 150,150 ) local radarArea = createRadarArea(1721.97595, -1434.01538, 130, 100, 255, 0, 0, 155) local hitArea = 0 function areaEnter(thePlayer, matchingDimension) if (getElementType(thePlayer) == "player") then if hitArea < 4 then hitArea = hitArea + 1 playerData.joinArea[thePlayer] = true 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) settings_Money =1000 function morrer() if playerData.joinArea[source] then takePlayerMoney (source, tonumber(settings_Money)) playerData.joinArea[source] = nil end end addEventHandler("onPlayerWasted", root, morrer)
  10. function caixa1(Jogador) if isElementWithinMarker(Jogador, markers[1]) then setTimer( function () givePlayerMoney(Jogador,5000) ------PEGAR VALOR NOS PICKUP mbag = createPickup( -2412.6999511719, -579.20001220703, 131.89999389648, 3, 1212 ) -----DESTROIR PICKUPS mbag = createPickup( -2414.5,-579.5 ,131.89999389648, 3, 1212 ) mbag = createPickup( -2412.3000488281, -578.79998779297, 131.89999389648, 3, 1212 ) mbag = createPickup( -2413.6999511719, -579.79998779297, 131.89999389648, 3, 1212 ) mbag = createPickup( -2412.8000488281,-578.70001220703, 131.89999389648, 3, 1212 ) mbag = createPickup( -2413.1999511719,-579, 131.89999389648, 3, 1212 ) mbag = createPickup( -2413.6000976563, -579.29998779297, 131.89999389648, 3, 1212 ) mbag = createPickup( -2414.1000976563,-579.5, 131.89999389648, 3, 1212 ) mbag = createPickup( -2412.8000488281,-578.20001220703, 131.89999389648, 3, 1212 ) mbag = createPickup( -2413.3000488281,-578.40002441406, 131.89999389648, 3, 1212 ) mbag = createPickup( -2413.6999511719,-578.79998779297, 131.89999389648, 3, 1212 ) mbag = createPickup( -2414.1000976563,-578.79998779297, 131.89999389648, 3, 1212 ) mbag = createPickup( -2413.1999511719,-577.90002441406, 131.89999389648, 3, 1212 ) mbag = createPickup( -2414.5,-579.5 ,131.89999389648, 3, 1212 ) triggerEvent(eventorestart, root) end, 1000, 1) end end addCommandHandler("robarcaixa1",caixa1)
  11. some function that loses money when it dies in the place somebody helps me
  12. function diminuiestrela () for _,jog in ipairs ( getElementsByType ('player') ) do local Serial = getPlayerSerial(jog) if ( getElementData (jog, 'naprisao') or getElementData (jog, 'navtr') or getElementData(ResourceEscolhido,""..Serial.."preso",true) ) then setPlayerWantedLevel (jog, getPlayerWantedLevel(jog)-1) if ( getPlayerWantedLevel (jog) < 1 ) then libera (jog) end end end if ( i == 4 ) then i = 1 else i = i +1 end end setTimer (diminuiestrela, 40000, 10000) function Logar () local Serial = getPlayerSerial(source) if getElementData(ResourceEscolhido,""..Serial.."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) end end addEventHandler ( 'onPlayerLogin', getRootElement ( ),Logar) function onPlayerSpawn() if getElementData(source, "preso") then outputChatBox("Você deslogou Preso, e por isso foi adicionado 6 estrelas", source) setElementInterior(source,6) setElementPosition (source, 264.1, 77.9, 1001.0) end end addEventHandler("onPlayerSpawn", getRootElement, onPlayerSpawn) function onSetTime() for _, jog in pairs(getElementsByType("player")) do if ( getElementData(jog,"naprisao"..getPlayerSerial(jog).."navtr") or ( getElementData(jog, "preso") ) ) then setPlayerWantedLevel(jog, getPlayerWantedLevel(jog)-1) if ( getPlayerWantedLevel(jog) == 0 ) then Liberar(jog) end end end end setTimer(onSetTime, 60000, 0)
  13. preciso de alguma funçao de quando tiver preso a pessoa sai do serve ela volta com nivel 6 de procurados help
  14. magicplayerc

    AJUDA POR ACL- NA ALGEMA

    function algemar(player, command, p) local acc = getPlayerAccount(player) local job = getElementData(player, 'ocupacao') or "Nenhum" if (job == "Policial") then if p then local target = getPlayerFromName(p) or getPlayerFromPartialName(p) if target and target ~= player then local px, py, pz = getElementPosition(player) local tx, ty, tz = getElementPosition(target) if getDistanceBetweenPoints3D(px, py, pz, tx, ty, tz) < 4 then if command == "algemar" then setElementData(target,"algemado",true) triggerClientEvent("algemaAdd", target) triggerClientEvent(target,"onClientPlayerAlgemado",resourceRoot,20000) setElementFrozen(target, true) setPedAnimation(player, "GANG", "prtial_gngtlkA", false, false) setTimer(function() setPedAnimation(player, false) end, 3000, 1, player, source) timer[target] = setTimer(desalgemar, 20000, 1, target) elseif command == "desalgemar" then local dataAlgemado = getElementData(target, "algemado") if (not dataAlgemado) then return outputChatBox("#FF0000ERROR: #FFFFFFEste jogador não está algemado", player, 255, 255, 255, true) end desalgemar(target) end else outputChatBox("#FF0000ERROR: #FFFFFFChegue mais perto do jogador", player, 255, 255, 255, true) end else outputChatBox("#FF0000ERROR: #FFFFFFVocê não pode algemar a si mesmo", player, 255, 255, 255, true) end else outputChatBox("#FF0000ERROR: #FFFFFFDigite /algemar <nick> ou /desalgemar <nick>", player, 255, 255, 255, true) end end end addCommandHandler("algemar", algemar)