-
Posts
224 -
Joined
-
Last visited
Everything posted by Renaz
-
vou testar Este é o código inteiro: --removido queria colocar acl em tudo isso
-
resolvido.
-
Estou tendo também um bug com o painel de login o bug é o este:: quando estou no painel de login ele fica bugando e quando aperto certas letras ele acaba abrindo paineis e coisas que só deviam ser abertas ingame
-
No caso ficaria assim : function desalgemarComando(player, commandName, playerid) if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount (thePlayer)), aclGetGroup ("PoliciaComandos")) then ---- ACL if not (playerid) then return end local alvo = exports["[PRS]ID_System"]:getPlayerID(tonumber(playerid)) -- aqui eu deixei pra buscar por nome, pois to sem sistema de id, no caso coloque aqui a função de buscar jogador por id se tiver if not (alvo) then return player:outputChat("[AVISO] jogador ID ' "..tostring(playerid).." ' não encontrado!.", 100, 100, 255, true) end local algemado = alvo:getData("Algemado") if not (algemado) then return player:outputChat("[AVISO] jogador ID ' "..tostring(playerid).." ' não está algemado", 100, 100, 255, true) end deixarAlgemado(alvo, nil) alvo:setData("Algemado", nil) setPedAnimation(alvo) player:outputChat("[AVISO] Você desalgemou o jogador ID ' "..tostring(playerid).." '!.", 100, 100, 255, true) alvo:outputChat("[AVISO] Policial ' "..player.name.." ' desalgemou você!.", 100, 100, 255, true) end addCommandHandler("desalgemar", desalgemarComando) function prenderComando(player, commandName, playerid) end
-
Pessoal um amigo meu criou um script de policial e agora eu queria deixar esse script só para o Grupo de ACL 'PoliciaComandos' alguém me pode dizer como posso faze-lo? (Já criei esse grupo de ACL)
-
ALGUEM SABE ALGUM MOD DA POLICIA CONFISCA AS ARMAS DO BANDIDO
Renaz replied to dayson's topic in Programação em Lua
esses mods de policial não existem na Internet pra fazer download gratuitamente, infelizmente você terá que o adquirir. -
Olá, eu tenho um velocimetro e queria edita-lo para remover uma coisa e colocar outra porém já tentei e acabei estragando o script várias vezes se alguém puder ajudar estou usando este velocimetro : https://imgur.com/a/E3QrSKm E queria substituir o "Nitro" por "Durabilidade do Veiculo" ou seja a vida do veiculo em % esse é o script : local sx,sy = guiGetScreenSize() local px,py = 1366,768 local x,y = (sx/px), (sy/py) local nitrof = isVehicleNitroRecharging ( vehicle, theVehicle ) local dxfont1_font = dxCreateFont("Images/fonte.ttf", 12) function Vel() local vehicle = getPedOccupiedVehicle( getLocalPlayer() ) if ( vehicle ) then local speedX, speedY, speedZ = getElementVelocity ( vehicle ) local actualSpeed = (speedX^2 + speedY^2 + speedZ^2)^(0.5) local KMH = math.floor(actualSpeed*180) if ( getElementHealth( vehicle ) >= 1000 ) then vehsaude = 100 else vehsaude = math.floor(getElementHealth ( vehicle )/10) end dxDrawRectangle(x*1134, y*710, x*222, y*32, tocolor(0, 0, 0, 100), false) -- dxDrawRectangle(x*1140, y*715, x*211, y*20, tocolor(0, 42, 57, 230), false) if KMH < 250 then dxDrawRectangle(x*1140, y*716, x*211/250*KMH, y*19, tocolor(5, 106, 204, 255), false) else -- dxDrawRectangle(x*1140, y*716, x*211, y*19, tocolor(0, 175, 240, 230), false) end dxDrawText(KMH.." KM/h", x*1140, y*715, x*1351, y*735, tocolor(254, 254, 254, 227), 1.00, dxfont1_font, "center", "center", false, false, false, false, false) dxDrawRectangle(x*1134, y*674, x*222, y*32, tocolor(0, 0, 0, 100), false) dxDrawImage(x*1055, y*674, x*71, y*32, "Images/1.png", 0, 0, 0, tocolor(255, 255, 255, 170), false) -- dxDrawRectangle(x*1134, y*638, x*222, y*32, tocolor(0, 0, 0, 150), false) -- dxDrawImage(x*1083, y*638, x*51, y*32, "Images/2.png", 0, 0, 0, tocolor(255, 255, 255, 170), false) -- dxDrawRectangle(x*1140, y*645, x*211/100*vehsaude, y*19, tocolor(254, 19, 19, 227), false) local car = getPedOccupiedVehicle(localPlayer) local nitro = getVehicleNitroLevel(car) if nitro ~= false and nitro ~= nil and nitro > 0 then dxDrawRectangle(x*1140, y*680, x*211/1*nitro, y*19, tocolor(5, 106, 204, 255), false) dxDrawText("Nitro: "..(math.floor(nitro/1*100)), x*1140, y*679, x*1351, y*699, tocolor(254, 254, 254, 227), 1.00, dxfont1_font, "center", "center", false, false, false, false, false) else dxDrawText("Sem Nitro", x*1140, y*679, x*1351, y*699, tocolor(254, 254, 254, 227), 1.00, dxfont1_font, "center", "center", false, false, false, false, false) end -- dxDrawText("Dano: "..vehsaude, x*1140, y*644, x*1351, y*664, tocolor(254, 254, 254, 227), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawImage(x*1098, y*710, x*33, y*32, "Images/3.png", 0, 0, 0, tocolor(255, 255, 255, 170), false) end end addEventHandler("onClientRender", root, Vel)
-
beleza,não quero nada muito elaborado mas queria um sistema que seria assim /algemar (pode deixar só /a para ser mais facil) /desalgemar (pode só deixar /d para ser mais facil) Para algemar e desalgemar o individou (não precisa estar procurado) /revistar Quando estamos na abordagem usar esse comando para ver o nivel de procurado,armas, e o nick (só essas 3 coisas) /prender seria cada estrela que o individou tivesse seria 10minutos de cadeia , pra utilizar esse comando teriamos que chegar na frente da delegacia e digitar /prender (id) e automaticamente ele seria teleportado para um interior e seria obrigado a cumprir a sua pena
-
Olá pessoal alguém sabe um sistema de prisão? com /revistar /algemar /prender? eu encontrei um mais ele tem um script que não inicia e tá dificil de achar!
-
exatamente isso , muito obrigado pela ajuda!
-
tem como colocar na tecla "o" ?
-
blz agora quando digito no chat padrão só vai os comandos e as palavras que eu escrevo não vai era isso que queria , mas agora voce removeu a tecla para abrir o chat twitter kk
-
agora ficou sem funcionar nenhum. ficou só o chat padrão.
-
chat_range=100 function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end function MensagemTwitter(source, cmd, ...) local MessagemT = table.concat ( { ... }, " " ) local name = getPlayerName(source); for _,v in ipairs(getElementsByType("player")) do outputChatBox("᠉ #00BFFFTwitter- #ffffff"..name.."#00BFFF - #FFFFFF"..MessagemT,v, 255, 255, 255, true) end end addCommandHandler("Twitter", MensagemTwitter) addCommandHandler( "DeepWeb", function ( source, cmd, ... ) local message2 = #{...} > 0 and table.concat({...}," ") or nil if message2 then for _, p in ipairs (getElementsByType("player")) do if hasObjectPermissionTo(p, "command.mute", true) then outputChatBox("᠉ #696969 DeepWeb- #696969"..message2, p, 255, 255, 255, true) else outputChatBox("᠉ #696969 DeepWeb- #696969"..message2, p, 255, 255, 255, true) end end else end end ) addEventHandler("onPlayerJoin", getRootElement(), function() bindKey(source, "t", "down", "chatbox", "Twitter") end ) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"t", "down", "chatbox", "Twitter") end end ) addEventHandler("onPlayerJoin", getRootElement(), function() bindKey(source, "u", "down", "chatbox", "DeepWeb") end ) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"u", "down", "chatbox", "DeepWeb") end end ) está junto com o outro chat (DeepWeb)
-
https://imgur.com/a/J57Egry
-
consegui vlw! consegui não , esse chat do twitter não dá pra usar comandos.
-
sim , é o chat padrão do mta. eu aperto "t" digito e ai dou enter e a mensagem aparece
-
esse chat "t" é o chat padrão do mta.
-
Eu tenho 3 chats no meu servidor , Twitter "i" , DeepWeb "u" , e ai tem o chat padrão o "t" queria apenas deixar o Twitter e o DeepWeb para os players falarem https://imgur.com/a/eEIP7iI
-
Olá estou criando um servidor 100% focado no RP puro. então para forçar os players a usarem o "Z" para falar e fazerem RP , eu queria saber como deixar o chat "T" unicamente para uso de comandos por exemplo: O player quando escrever alguma palavra no chat ela não vai aparecer de jeito nenhum para o outro jogador , porém se ele usar um comando irá funcionar , se alguem poder me ajudar fico muito agradecido!
-
Hello everyone, I have come to ask how to remove the "t" chat, I am creating an RP server and I want to force the players to follow the RP and remove the "t" chat I just want to leave the "t" chat for commands, someone put something without being a command this would not appear in the chat Example; Correct; https://imgur.com/a/W9rJSvj Wrong; https://imgur.com/a/9ED4mHy
