Jump to content

Yuri Gabriel

Members
  • Posts

    1
  • Joined

  • Last visited

Yuri Gabriel's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Oii Gente, é q tipo eu tou com um script aq d prender no F9 acho q vcs conhecem... então, eu transferi o local de ser preso pra uma prisão q eu tenho, só q ao chegar la a pessoa n pode se mover, fica apenas parada no msm lugar com a tela mechendo ai quando acaba o tempo de prisão ela se move queria a ajuda de alguem pra me dizer como ajeitar, ta aq o script: SCRIPT 1: local screenW, screenH = guiGetScreenSize() local resW, resH = 1366, 768 local x, y = (screenW/resW), (screenH/resH) InteriorDP = 0 DimensaoDP = 0 AirNew_Marker_Prisao = createMarker ( -1015.096, -635.244, 32.008, "cylinder", 2.5, 0, 0, 0, 0 ) setElementInterior ( AirNew_Marker_Prisao, InteriorDP ) setElementDimension ( AirNew_Marker_Prisao, DimensaoDP ) function Jogador_na_Prisao ( player ) return isElementWithinMarker ( player, AirNew_Marker_Prisao ) end Policial_Atirar = {} Timer_Policial_Atirar = {} function Resetar_AgressaoPolicial ( cop ) if Policial_Atirar[cop] and Policial_Atirar[cop] == true then Policial_Atirar[cop] = false end end Abrir_Fechar_Prender = "F9" function Prender_Cacetete ( Atirador, weapon, bodypart ) local Vitima = source local Tempo_Prisao_Vitima = getElementData ( Vitima, "AirNew_Tempo_Prisao" ) or 0 local Emprego_Vitima = tostring ( getElementData ( Vitima, "ocupacao" ) ) or "Nenhum" if Atirador then Emprego_Atirador = getElementData ( Atirador, "ocupacao" ) or "Nenhum" else Emprego_Atirador = "Nenhum" end if Emprego_Vitima == true or Emprego_Vitima == false or Emprego_Vitima == nil or tostring ( Emprego_Vitima ) == "Nenhum" then cancelEvent ( ) end if Atirador ~= localPlayer or weapon == 53 or weapon == 54 or weapon == 50 or weapon == 55 then if Emprego_Vitima == "Criminoso" then local Capturado_Policial = getElementData ( Vitima, "Policia:Captura" ) if isElement ( Capturado_Policial ) then cancelEvent ( ) end if Jogador_na_Prisao ( Vitima ) == true and Tempo_Prisao_Vitima > 0 then cancelEvent ( ) end end if isElement ( Atirador ) then if Emprego_Atirador == "Criminoso" then if Emprego_Vitima == "Policial" then for k, v in pairs(Policial_Atirar) do if k == Vitima and v == true then return end end Policial_Atirar[Vitima] = true Timer_Policial_Atirar[Vitima] = setTimer ( Resetar_AgressaoPolicial, 30000, 1, Vitima ) triggerServerEvent ( "AirNewSCR_Nivel_de_Procurado", Atirador, Atirador, 1 ) Mensagens_Exports ( Atirador, "Aviso: Você Agrediu um Policial, e Pode ser Preso por isso!" ) else --cancelEvent ( ) end elseif Emprego_Atirador == "Policial" then if Emprego_Vitima == "Criminoso" then local wl = getPlayerWantedLevel ( Vitima ) or 0 if wl == 0 then Mensagens_Exports ( Atirador, "Erro: Este Jogador não tem Mandato de Prisão!" ) end if wl > 0 then if weapon == 3 or weapon == 23 then -- Cacetete / Tazer (Silenced) local Policia_Captura = getElementData ( source, "Policia:Captura" ) if isElement ( Policia_Captura ) then cancelEvent ( ) return end if Policia_Captura == false or Policia_Captura == nil then --local Captura_na_Prisao = Jogador_na_Prisao ( Vitima ) --if Captura_na_Prisao then -- triggerServerEvent( "AirNewSCR_Prender_Jogador", Atirador, Atirador, wl, source ) --else setElementData ( source, "Policia:Captura", Atirador ) setElementData ( source, "Player:Msg", "Capturado por\n"..getPlayerName ( Atirador ) ) triggerServerEvent ( "AirNewSCR_Capturar_Jogador", Atirador, Atirador, wl, source ) --end end end end end end end end end Script 2: InteriorDP = 0 DimensaoDP = 0 Cmd01 = "a" -- Algema Cmd02 = "d" -- Desalgema Cmd03 = "c" -- Retira Armas Grupo = "Policial" Distancia_Comandos = 7 Deixar_Preso = createMarker ( 1286.80994, -1363.26123, 15.91562 -1, "cylinder", 10, 255, 255, 255, 0 ) Local_Preso = createMarker ( -1032.524, -640.866, 32.008 -1, "cylinder", 2.5, 255, 255, 255, 0 ) setElementInterior ( Local_Preso, InteriorDP ) setElementDimension ( Local_Preso, DimensaoDP ) function emarker ( marker, md ) if md then if marker == Deixar_Preso then if getElementData ( source, "ocupacao" ) == "Policial" then setElementData ( source, "AirNewSCR_PrisaoArea", "Sim" ) exports.Scripts_OnMarkerMsgs_:create ( source, "Aviso: Aperte F9 para Abrir / Fechar o Painel de Prender do DP" ) end end end end addEventHandler ( "onPlayerMarkerHit", getRootElement ( ), emarker ) function lmarker ( marker, md ) if md then if marker == Deixar_Preso then setElementData ( source, "AirNewSCR_PrisaoArea", "Não" ) exports.Scripts_OnMarkerMsgs_:delete(source) end end end SE quiserem os 2 completos só me falar pfvr me ajudem
×
×
  • Create New...