magicplayerc

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About magicplayerc

  • Rank
    Square
  • Birthday 24/05/2000

Recent Profile Visitors

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

  1. 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)
  2. some function that loses money when it dies in the place somebody helps me
  3. 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)
  4. preciso de alguma funçao de quando tiver preso a pessoa sai do serve ela volta com nivel 6 de procurados help
  5. 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)
  6. Alguem sabe como fazer isso solta depois de um tempo nao estou conseguindo AJUDA Alguem sabe como fazer isso solta depois de um tempo nao estou conseguindo AJUDA function algemandomta( ped1 ) setElementPosition (toPlayer, x, y, z) setPedAnimation(toPlayer) setPedAnimation(toPlayer, "KISSING", "Gift_Give",200,false,false,false) setPedAnimationProgress(toPlayer, "Gift_Give", 0.15) recursaop = setTimer ( algemandomta, 50, 1, ped1 ) end
  7. Quote
    
    function Comando2 ( ThePlayer )
    outputChatBox("#ffff00Você CHAMOU REFORÇO ESPERE no local", ThePlayer, 255, 255, 255, true)
    end
    addCommandHandler("reforco", Comando2 ) --------------- ACL AQUI
    ----------------------------------------
    
    function chamado2(source)
    for i, player in ipairs(getElementsByType("player")) do
    local uj = getElementData(player,"PMemprego") or false
    if type(uj) == "boolean" then
    if uj == true then
    outputChatBox("#ffffffPOLICIAL "..getPlayerName(source).." #ffffffCHAMOU REFORCO AGORA",player, 255,255,255,true)
    outputChatBox("#ff0000----------------------------------------------------------------",player, 255,255,255,true)
    outputChatBox("#ff0000/ir #ffffff "..getPlayerName(source).." #ffffffPara ir ate o local onde jogador chamou",player, 255,255,255,true)
    end
    end
    end
    end
    addCommandHandler("reforco",chamado2) --------------- ACL AQUI

     

     

    1. magicplayerc

      magicplayerc

      ajuda por ACL NESSES 2 COMANDO POR FAVOR

       

    2. MayconGabriel

      MayconGabriel

      como faço para usar esse Código?

  8. function Comando2 ( ThePlayer ) outputChatBox("#ffff00Você CHAMOU REFORÇO ESPERE no local", ThePlayer, 255, 255, 255, true) end addCommandHandler("reforco", Comando2 ) --------------- ACL AQUI ---------------------------------------- function chamado2(source) for i, player in ipairs(getElementsByType("player")) do local uj = getElementData(player,"PMemprego") or false if type(uj) == "boolean" then if uj == true then outputChatBox("#ffffffPOLICIAL "..getPlayerName(source).." #ffffffCHAMOU REFORCO AGORA",player, 255,255,255,true) outputChatBox("#ff0000----------------------------------------------------------------",player, 255,255,255,true) outputChatBox("#ff0000/ir #ffffff "..getPlayerName(source).." #ffffffPara ir ate o local onde jogador chamou",player, 255,255,255,true) end end end end addCommandHandler("reforco",chamado2) --------------- ACL AQUI
  9. magicplayerc

    Armas no marker por comando /batercartao AJUDA

    obrigado ja me ajudaram ❤️
  10. magicplayerc

    ACL Permission Police

    ACL Permission Police Help please function Comando2 ( ThePlayer ) outputChatBox("#ffff00Você CHAMOU REFORÇO ESPERE no local", ThePlayer, 255, 255, 255, true) end addCommandHandler("reforco", Comando2 ) --------------- ACL AQUI ---------------------------------------- function chamado2(source) for i, player in ipairs(getElementsByType("player")) do local uj = getElementData(player,"PMemprego") or false if type(uj) == "boolean" then if uj == true then outputChatBox("#ffffffPOLICIAL "..getPlayerName(source).." #ffffffCHAMOU REFORCO AGORA",player, 255,255,255,true) outputChatBox("#ff0000----------------------------------------------------------------",player, 255,255,255,true) outputChatBox("#ff0000/ir #ffffff "..getPlayerName(source).." #ffffffPara ir ate o local onde jogador chamou",player, 255,255,255,true) end end end end addCommandHandler("reforco",chamado2) --------------- ACL AQUI
  11. function PMtrabalhar ( ThePlayer ) local accName = getAccountName ( getPlayerAccount ( ThePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "PMP") ) then if not isElementWithinMarker(ThePlayer, MarkerPM) then return end if getElementData(ThePlayer, "PMemprego", true) then outputChatBox("#ff0000Voçe ja esta em serviço e nao pode bater cartao novamente",ThePlayer,255,255,255,true) else outputChatBox(" "..getPlayerName(ThePlayer).." #FFFF00BATEU O CARTAO E ESTA EM SERVIÇO PARA PATRULHAMENTO E RECEBER CHAMADAS 190", Player, 255, 255, 255, true) setElementData(ThePlayer, "PMemprego", true) end end end addCommandHandler("batercartao", PMtrabalhar) ONDE COLOCO ARMA SKIN COLETE AQUI pra quando digitar comando pegar tudo
  12. magicplayerc

    ACL Permission Police

    Permission to hit specified ACL card ?????? Help please function PMtrabalhar ( ThePlayer ) if not isElementWithinMarker(ThePlayer, MarkerPM) then return end if getElementData(ThePlayer, "PMemprego", true) then outputChatBox("#ff0000Voçe ja esta em serviço e nao pode bater cartao novamente",ThePlayer,255,255,255,true) else outputChatBox(" "..getPlayerName(ThePlayer).." #FFFF00BATEU O CARTAO E ESTA EM SERVIÇO PARA PATRULHAMENTO E RECEBER CHAMADAS 190", Player, 255, 255, 255, true) setElementData(ThePlayer, "PMemprego", true) end end addCommandHandler("batercartao", PMtrabalhar)
  13. magicplayerc

    Help chatbox all players

    I want this message to appear with the name of the person example Leonardo Bateu card and this in service already tried all functions of OutchatBox anyway still continues giving error help please function PM ( ThePlayer ) if not isElementWithinMarker(ThePlayer, JoinMaker) then return end if isPedInVehicle(ThePlayer) then return end if getElementData(ThePlayer, "PMEMPREGO", true) then outputChatBox("#FFFFFFVoçe ja bateu o cartao ",Players,255,255,255,true) else outputChatBox("#FFFF00Bateu Cartao e esta em serviço agora", Players, 255, 255, 255, true) ------------ QUERO QUE APAREÇA COM NOME DA PESSOA E NADA QUE COLOCO DA CERTO setElementData(ThePlayer, "PMEMPREGO", true) end end addCommandHandler("trabalhar", PM)
  14. magicplayerc

    Help function

    I made an assault the company would like a function that after they have it inside the assault I caused the assault to restart the assault they lose money that is stealing us in the marker, and will be teleported to some place there is some function for that someone can help me or if that does not have some function that if he dies so much for bot or player loses all the money helps