Jump to content

Search the Community

Showing results for tags 'acl'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. Alguem Teria um script que é só um Marker mais se eu tiver com acl pm spawnar uma vtr e se eu tiver com a acl samu spawn uma vtr da samu no mesmo marker ?
  2. Eu jogava em uma cidade muito boa, porém por uns motivos ai ela nunca mais foi a mesma. Há um tempinho eu e meu amigo começamos a tentar criar uma cidade nova. Então que me deparo com o mesmo inventario daquela cidade, tem rota, montagem arma, bau, conce, detran etc sóq nao tem 3 coisas basicas pro rp, revistar/saquear, radinho, sistema dinheiro sujo. Se alguem pirar de me ajudar mano fico mt agradecido de vdd, caso alguem queira o inventario tbm eu libero pra vcs Meu dc qlr coisa; brbugadao
  3. Bom tentei criar um Script onde ele bloquearia o a viatura para outros players porem nao funcionou nao exatamente Bom ele impede q o player entre no carro mas caso o jogador saia e deixe a porta aberta jogadores que nao pertença a acl conseguem entrar e dirigir eu queria q de alguma maneira eles entrassem e fossem ejetados do carro function enterVehicle(player, seat, jacked) local account = getPlayerAccount(player) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if (getElementModel(source) == 580) and (not isObjectInACLGroup("user.".. accountName,aclGetGroup("Teste"))) then setVehicleLocked(source, true) outputChatBox("Teste Teste Teste Teste.", player) else setVehicleLocked(source, false) end end addEventHandler("onVehicleStartEnter",root,enterVehicle)
  4. Eu estava tentando colocar esse spawn de vehiculo por acl, mas não estou conseguindo. Alguém consegue me ajudar? veh = {} addEventHandler("onResourceStart", resourceRoot, function() for i, v in ipairs(spawn) do local veh = createVehicle(v[1], v[2], v[3], v[4], v[5], v[6], v[7]) setElementCollisionsEnabled(veh, false) setElementData(veh, "vehSpawn", true) setElementFrozen(veh, true) setVehicleDamageProof(veh, true) end end) addEventHandler("onVehicleEnter", getRootElement(), function(player) if source and getElementType(source) == "vehicle" then local model = getElementModel(source) local x, y, z = getElementPosition(source) if getElementData(source, "vehSpawn") then if veh[player] and isElement(veh[player]) then destroyElement(veh[player]) end veh[player] = createVehicle(model, x+3, y, z) warpPedIntoVehicle(player, veh[player]) end end end) addEventHandler("onPlayerWasted", root, function() if veh[source] and isElement(veh[source]) then destroyElement(veh[source]) end end) addEventHandler("onPlayerLogout", root, function() if veh[source] and isElement(veh[source]) then destroyElement(veh[source]) end end) addEventHandler("onPlayerQuit", root, function() if veh[source] and isElement(veh[source]) then destroyElement(veh[source]) end end)
  5. queria por em meu servidor 2 empregos que usam acl uber e mecanico ambos estao localizados na msm agencia consegui fazer com 1 porem quando tento adicionar outro nao funciona Scrip abaixo --[[ ><><><><><><><><><><><><><><><><><><><>< >< Pegar Trabalho >< ><><><><><><><><><><><><><><><><><><><>< --]] function Pegar_Emprego (source, Trab, Level, Hab) local Trabalho = getElementData ( source, "Emprego" ) or "Desempregado" local Habilicao = getElementData ( source, "DNL:Categoria("..Hab..")") local Level_Player = tonumber(getElementData(source, "Level")) or 0 if Level_Player >= tonumber(Level) then if Trabalho == Trab then triggerClientEvent(source, "addNotification", root, "INFO: Você Já Trabalha Como "..Trab.."", "info") return end if Habilicao == false then triggerClientEvent(source, "addNotification", root, "Erro: Você Não Tem Habilitação ("..Hab..") e Não Pode Trabalhar Como ("..Trab..")", "erro") return end setElementData ( source, "Emprego", Trab ) triggerClientEvent(source, "addNotification", root, "INFO: Você Agora Trabalha de "..Trab.."", "info") else triggerClientEvent(source, "addNotification", root, "Erro: Seu Level é Muito Baixo e Você Não Pode Trabalhar Como "..Trab.."", "erro") end end addEvent("DNL:Pegar_Emprego", true) addEventHandler("DNL:Pegar_Emprego", root, Pegar_Emprego) function Pegar_Emprego (playerSource) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) -- get his account name local Emprego = getElementData ( playerSource, "Emprego" ) if Emprego == "Mecanico" then aclGroupAddObject (aclGetGroup("Mecanico"), "user."..accName) outputChatBox ("Parabéns! Agora você está trabalhando de Mecanico!", playerSource, 0, 255, 0,true) outputChatBox ("Va para o T marcado no mapa proximo a DP!", playerSource, 0, 255, 0,true) end end addEvent("DNL:Pegar_Emprego", true) addEventHandler("DNL:Pegar_Emprego", root, Pegar_Emprego) function Sair_ACL (playerSource) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Mecanico" ) ) then -- Does he have access to Admin functions? aclGroupRemoveObject (aclGetGroup("Mecanico"), "user."..accName) outputChatBox ("Você não está trabalhando de Mecanico!", playerSource, 0, 255, 0,true) end end addEvent("DNL:Pedir_Demissao", true) addEventHandler("DNL:Pedir_Demissao", root, Sair_ACL) addEvent("DNL:Pegar_Emprego", true) addEventHandler("DNL:Pegar_Emprego", root, Pegar_Emprego) function Pegar_Emprego (playerSource) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) -- get his account name local Emprego = getElementData ( playerSource, "Emprego" ) if Emprego == "Uber" then aclGroupAddObject (aclGetGroup("Uber"), "user."..accName) outputChatBox ("Parabéns! Agora você está trabalhando de Uber!", playerSource, 0, 255, 0,true) end end addEvent("DNL:Pegar_Emprego", true) addEventHandler("DNL:Pegar_Emprego", root, Pegar_Emprego) function Sair_ACL (playerSource) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Uber" ) ) then -- Does he have access to Admin functions? aclGroupRemoveObject (aclGetGroup("Uber"), "user."..accName) outputChatBox ("Você não está trabalhando de Uber!", playerSource, 0, 255, 0,true) end end addEvent("DNL:Pedir_Demissao", true) addEventHandler("DNL:Pedir_Demissao", root, Sair_ACL) --[[ ><><><><><><><><><><><><><><><><><><><>< >< Demissao Trabalho >< ><><><><><><><><><><><><><><><><><><><>< --]] function Pedir_Demissao (source) local Trabalho = getElementData ( source, "Emprego" ) or "Desempregado" if Trabalho == "Desempregado" then triggerClientEvent(source, "addNotification", root, "Erro: Você não está empregado para se demitir.", "erro") return end setElementData ( source, "Emprego", "Desempregado" ) triggerClientEvent(source, "addNotification", root, "Sucesso: Você Se Demitiu Do Emprego de "..Trabalho.."", "sucesso") end addEvent("DNL:Pedir_Demissao", true) addEventHandler("DNL:Pedir_Demissao", root, Pedir_Demissao)
  6. Alguém têm um script de bate-ponto sem ser por marker , poder usar o comando e entrar em serviço em qualquer local do mapa?? Alguém me consegue ajudar??
  7. radar script is really cool. I want to use it on my server but I want it to work with acl. So the clan's radar will not show the people in that clan, it will only be visible if someone else enters it. Can you help me do this please? local screenX, screenY = guiGetScreenSize() local angle = 0 local visible = false local lineVisible = false local tick = getTickCount() local radares = {} local elementsDetected = {} -- local radius = 20 -- radius local centerPos = {-1344.0895996094, -42.202056884766, 10, 10} -- Edit position of radar: x, y, z, height local radarColshape = createColCircle(centerPos[1], centerPos[2], radius) -- function attachRadarToElement(element) if isElement(element) then centerPos = element end end function createRadar(posX, posY, size) table.insert(radares, {x = posX, y = posY, s = size, r = (size - (size*40/300))/2}) end createRadar(screenX - 366, screenY - 318, 300) local function linear(t, b, c, d) return c * t / d + b end function radar() local now = getTickCount() if now-tick >= 50 then tick = getTickCount() angle = angle < 360 and angle + 2 or 0 end if visible then for _, v in ipairs(radares) do dxDrawImage(v.x, v.y, v.s, v.s, "images/radar.png") local centerX, centerY = v.x+v.s/2, v.y+v.s/2 for i = -30, 1 do local alpha = 8.5*i local endX = math.cos( math.rad( angle + i*2 ) ) * v.r local endY = -math.sin( math.rad( angle + i*2 ) ) * v.r local lineX, lineY = centerX, centerY dxDrawLine(lineX, lineY, endX + lineX, endY + lineY, tocolor(0, 255, 0, alpha), 7) end for element, b in pairs(elementsDetected) do local elapsedTime = now - b[1] if elapsedTime < 3000 then local alpha = linear(elapsedTime, 255, -255, 3000) local hip = (v.r*b[3])/radius local x, y = math.cos(b[2]) * hip, math.sin(b[2]) * hip dxDrawImage(centerX-8+x, centerY-8-y, 16, 16, "images/56.png", _, _, _, tocolor(255, 255, 255, alpha)) else elementsDetected[element] = nil end end end end end addEventHandler("onClientRender", root, radar) -- addEventHandler("onClientPreRender", root, function() local centerX, centerY, centerZ, height if not isElement(centerPos) then centerX, centerY, centerZ, height = unpack( centerPos ) else centerX, centerY, centerZ = getElementPosition(centerPos) height = 10 end if lineVisible then for i = 1, 360, 45 do local endX = math.cos( math.rad( i ) ) * radius local endY = math.sin( math.rad( i ) ) * radius dxDrawLine3D(centerX, centerY, centerZ + height, endX + centerX, endY + centerY, centerZ + height, tocolor(255, 255, 0, 150), 7) dxDrawLine3D(endX + centerX, endY + centerY, centerZ, endX + centerX, endY + centerY, centerZ+height, tocolor(255, 255, 0, 150), 7) end local endX, endY = math.cos( math.rad( angle ) ) * radius, math.sin( math.rad( angle ) ) * radius local endX2, endY2 = math.cos( math.rad( angle - 10 ) ) * radius, math.sin( math.rad( angle - 10 ) ) * radius local middleZ = (centerZ + height) dxDrawLine3D(centerX, centerY, middleZ, endX + centerX, endY + centerY, middleZ, tocolor(255, 0, 0, 150), 3) dxDrawLine3D(centerX, centerY, middleZ, endX2 + centerX, endY2 + centerY, middleZ, tocolor(255, 0, 0, 150), 3) dxDrawLine3D( endX + centerX, endY + centerY, middleZ, endX2 + centerX, endY2 + centerY, middleZ, tocolor(255, 0, 0, 150), 3) end local elements = getElementsWithinColShape(radarColshape) for e = 1, #elements do local x, y, z = getElementPosition(elements[e]) local hipotenusa = ( (x-centerX)^2 + (y-centerY)^2 ) ^ .5 local eAngle = math.acos( (x-centerX) / hipotenusa ) eAngle = (y-centerY) < 0 and math.pi*2 - eAngle or eAngle --local xFrom, yFrom = math.cos(eAngle)*hipotenusa, math.sin(eAngle)*hipotenusa --dxDrawLine3D(centerX, centerY, 7, xFrom + centerX, yFrom + centerY, z, tocolor(0, 255, 0, 150), 3) -- To see where the element is supposed to be if eAngle >= math.rad( angle - 10 ) and eAngle <= math.rad ( angle ) then if visible and not elementsDetected[elements[e]] then playSoundFrontEnd(5) end elementsDetected[elements[e]] = {getTickCount(), eAngle, hipotenusa} end end end ) addCommandHandler("radar2", function() visible = not visible end ) addCommandHandler("radarline", function() lineVisible = not lineVisible end )
  8. Gostaria de saber se é possível configurar um "grupo" de veículos criado através de um script onde tenha limitação por ACL. Vou ser mais específico, estou criando um script onde spawna um carro qualquer que possui na cidade com algumas configurações através do spawn, como Sirens, handling, cor e etc. Porém só consigo criar a limitação do veículo todo, mesmo fora desse spawn há a limitação até mesmo sem por o id do carro na função. Tem como eu criar um grupo por exemplo, vtr1, vtr2, vtr3... e ajustar a limitação de acl para apenas essas vtr's específicas, deixando os demais spawns do mesmo carro de forma livre? Ex. Conce, painel e etc. Outra coisa, a limitação está de uma forma que o veículo pareça trancado para quem não está na ACL, porém se alguém tentar entrar no carro estando com a porta aberta o player consegue entrar no veículo. Como faço para que quando o player que não esteja na ACL não tente nem mesmo entrar no carro, ele aperta F e não acontece nada somente acusa a mensagem? local auto1 = createVehicle ( 587, 1595.05359, -1711.63843, 5.6, 0, 0.0, 0 ) --- setElementRotation ( auto1, 0, 0, 0) removeVehicleSirens(auto1) addVehicleSirens(auto1, 6, 2, true, false, true, true ) setVehicleSirens(auto1, 1, -0.850, 2.400, 0.000, 255, 0, 0, 255, 255 ) setVehicleSirens(auto1, 2, 0.850, 2.400, 0.000, 0, 55, 255, 255, 255 ) setVehicleSirens(auto1, 3, -0.700, -2.100, 0.100, 255, 0, 0, 255, 255 ) setVehicleSirens(auto1, 4, 0.700, -2.100, 0.100, 255, 0, 0, 255, 255 ) setVehicleSirens(auto1, 5, -0.500, -0.350, 0.630, 255, 0, 0, 255, 255 ) setVehicleSirens(auto1, 6, 0.500, -0.350, 0.630, 0, 0, 255, 255, 255 ) setVehicleColor( auto1, 0, 0, 0, 255,255,255, 255,255,255 ,255,255,255 ) setElementData(auto1,"Descaracterizada",true) setElementFrozen (auto1, false ) local auto2 = createVehicle ( 587, 1590.96777, -1711.61438, 5.6, 0, 0, 0 ) --- setElementRotation ( auto2, 0, 0, 0) removeVehicleSirens(auto2) addVehicleSirens(auto2, 6, 2, true, false, true, true ) setVehicleSirens(auto2, 1, -0.850, 2.400, 0.000, 255, 0, 0, 255, 255 ) setVehicleSirens(auto2, 2, 0.850, 2.400, 0.000, 0, 55, 255, 255, 255 ) setVehicleSirens(auto2, 3, -0.700, -2.100, 0.100, 255, 0, 0, 255, 255 ) setVehicleSirens(auto2, 4, 0.700, -2.100, 0.100, 255, 0, 0, 255, 255 ) setVehicleSirens(auto2, 5, -0.500, -0.350, 0.630, 255, 0, 0, 255, 255 ) setVehicleSirens(auto2, 6, 0.500, -0.350, 0.630, 0, 0, 255, 255, 255 ) setVehicleColor( auto2, 0, 0, 0, 255,255,255, 255,255,255 ,255,255,255 ) setElementData(auto2,"Descaracterizada",true) setElementFrozen (auto2, false ) local auto3 = createVehicle ( 587, 1587.30481, -1712.10596, 5.6,0,0.0,0 ) --- removeVehicleSirens(auto3) addVehicleSirens(auto3, 6, 2, true, false, true, true ) setVehicleSirens(auto3, 1, -0.850, 2.400, 0.000, 255, 0, 0, 255, 255 ) setVehicleSirens(auto3, 2, 0.850, 2.400, 0.000, 0, 55, 255, 255, 255 ) setVehicleSirens(auto3, 3, -0.700, -2.100, 0.100, 255, 0, 0, 255, 255 ) setVehicleSirens(auto3, 4, 0.700, -2.100, 0.100, 255, 0, 0, 255, 255 ) setVehicleSirens(auto3, 5, -0.500, -0.350, 0.630, 255, 0, 0, 255, 255 ) setVehicleSirens(auto3, 6, 0.500, -0.350, 0.630, 0, 0, 255, 255, 255 ) setVehicleColor( auto3, 0, 0, 0, 0,0,0, 255,255,255 ,255,255,255 ) setElementData(auto3,"Descaracterizada",true) setElementFrozen (auto3, false ) local auto4 = createVehicle ( 587, 1583.30481, -1712.10596, 5.6,0,0.0,0 ) --- setElementRotation ( auto4, 0, 0, 0) removeVehicleSirens(auto4) addVehicleSirens(auto4, 6, 2, true, false, true, true ) setVehicleSirens(auto4, 1, -0.850, 2.400, 0.000, 255, 0, 0, 255, 255 ) setVehicleSirens(auto4, 2, 0.850, 2.400, 0.000, 0, 55, 255, 255, 255 ) setVehicleSirens(auto4, 3, -0.700, -2.100, 0.100, 255, 0, 0, 255, 255 ) setVehicleSirens(auto4, 4, 0.700, -2.100, 0.100, 255, 0, 0, 255, 255 ) setVehicleSirens(auto4, 5, -0.500, -0.350, 0.630, 255, 0, 0, 255, 255 ) setVehicleSirens(auto4, 6, 0.500, -0.350, 0.630, 0, 0, 255, 255, 255 ) setVehicleColor( auto4, 0, 0, 0, 0,0,0, 255,255,255 ,255,255,255 ) setElementData(auto4,"Descaracterizada",true) setElementFrozen (auto4, false ) function enterVehicle(thePlayer, seat, jacked) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if (not isObjectInACLGroup("user.".. accountName,aclGetGroup("PF"))) then setVehicleLocked(source, true) outputChatBox("#ffff00Você não é da polícia", thePlayer) else setVehicleLocked(source, false) end end addEventHandler("onVehicleStartEnter",root,enterVehicle) ---- Reparo VTR local marker = createMarker(1585.41992, -1677.68030, 5.89699-0.9,"cylinder", 2, 20, 20, 20, 255) function reparar(el,md) if getElementType(el)=="vehicle" then if getElementModel(el)==587 then p=getVehicleController(el) local money = getPlayerMoney(p) if (money >= 0) then takePlayerMoney(p, 0) outputChatBox("Reparando veículo! Aguarde 5 segundos",p,255,0,0) setElementFrozen (el, true ) setTimer(function() setElementFrozen(el, false) fixVehicle(el) end, 5000, 1) else outputChatBox("Não podemos reparar sua viatura, você está com saldo negativo!",p,255,255,255) return end end end end addEventHandler("onMarkerHit", marker, reparar)
  9. hello good to all I need a little help with a script, is that I want to make a voice chat, only for acl, which works with command. Please I need someone to help me with that script, I thank you in advance. Plis
  10. Olá pessoal Tenho este Script que da fome e sede aos player, porem tambem esta a dar aos staffs, gostaria de colocar para ignorar quem tiver a acl "Staff" alguem consegue ajudar porfavor? timeFome = 108000 timeSede = 72000 function repeatFome() if getElementData(localPlayer, "afkdate") == true then return end if getElementData(localPlayer, "Fome:Logado") == true then dataFome = getElementData(localPlayer, "hunger") -1 setFome = setElementData(localPlayer, "hunger", dataFome) if getElementData(localPlayer, "hunger") <= 0 then setElementData(localPlayer, "hunger", 10) setElementHealth(localPlayer, 0) end end end setTimer(repeatFome, timeFome, 0) function repeatSede() if getElementData(localPlayer, "afkdate") == true then return end if getElementData(localPlayer, "Sede:Logado") == true then Sede = getElementData(localPlayer, "sede") -1 SetarSede = setElementData(localPlayer, "sede", Sede) if getElementData(localPlayer, "sede") <= 0 then setElementData(localPlayer, "sede", 10) setElementHealth(localPlayer, 0) end end end setTimer(repeatSede, timeSede, 0) function VerificarFomeRepeat() if getElementData(localPlayer, "Fome:Logado") == true then Fome = getElementData(localPlayer, "hunger") if Fome > 100 then setElementData(localPlayer, "hunger", 100) end end end setTimer(VerificarFomeRepeat, 50, 0) function VerificarSedeRepeat() if getElementData(localPlayer, "Sede:Logado") == true then Sede = getElementData(localPlayer, "sede") if Sede > 100 then setElementData(localPlayer, "sede", 100) end end end setTimer(VerificarSedeRepeat, 50, 0)
  11. Olá pessoal tou a usar um painel policial que tem aquela opção de colocar o player na viatura, acontece que também deixa colocar na viatura o player que esta a executar o comando do painel ou seja o policial permitindo assim bugar a opção caso o player morra so usar essa opção e é teleportado para a vtr , então eu queria basicamente que o player que desse o comando (policial) não pudesse se colocar a si proprio na vtr Se alguém conseguir ajudar agradecia! Vou deixar o código dessa opção Mas acho que resolveria se não deixasse abrir o painel no proprio ID supondo que sou policial e sou id 1 se der /policial 1 aparecer uma msg erro a dizer que nao posso usar o painel em mim vou deixar o cdigo do comando em baixo também! [CODIGO DA OPÇÃO] addEventHandler("Player.onViatura", root, function() local receiver = getElementData(source, "ReceiverPM") local vtr = carros[source] if (receiver) and (vtr) then local vrx, vry, vrz = getElementRotation(vtr) local px, py, pz = getElementPosition(vtr) if not getElementData(receiver, "NaViatura") then if not isPedInVehicle(receiver) then setElementData(receiver, "NaViatura", true) message(source, "O jogador foi colocado na viatura.", "success") message(receiver, "Você foi colocado na viatura!", "info") attachElements(receiver, vtr, 0.2, -1.5, 0, 0,0,90) setPedAnimation(receiver, 'ped','CAR_dead_LHS') setElementRotation(receiver, vrx, vry, vrz + 83) end else setElementData(receiver, "NaViatura", nil) message(source, "O jogador foi retirado da viatura.", "success") message(receiver, "Você foi retirado da viatura!", "info") detachElements(receiver, getElementAttachedTo(receiver)) setElementPosition(receiver, px + 2, py + 2, pz) setPedAnimation(receiver) end else message(source, "Voce nao pode colocar-se a si mesmo na viatura!", "error") end end ) [CODIGO DO COMANDO] local comando = "p" addCommandHandler(comando, function (thePlayer, _, id) local id = tonumber(id) if id then local player = getPlayerByID(id) if player and isElement(player) then local accountname = getAccountName(getPlayerAccount(thePlayer)) if accountname and not isGuestAccount(accountname) then local acc = getAccountName(accountname) if isObjectInACLGroup("user."..accountname, aclGetGroup("Policial")) then triggerClientEvent(thePlayer, "Player.onPainelPolicial", resourceRoot, player) end end end end end) getPlayerByID = function (id) local pReturn = false for i, v in ipairs(getElementsByType("player")) do local idp = getElementData(v, "ID") or false if idp then if idp == tonumber(id) then pReturn = v end end end return pReturn end
  12. Olá pessoal Tenho este Script que da fome e sede aos player, porem tambem esta a dar aos staffs, gostaria de colocar para ignorar quem tiver a acl "Staff" alguem consegue ajudar porfavor? timeFome = 108000 timeSede = 72000 function repeatFome() if getElementData(localPlayer, "afkdate") == true then return end if getElementData(localPlayer, "Fome:Logado") == true then dataFome = getElementData(localPlayer, "hunger") -1 setFome = setElementData(localPlayer, "hunger", dataFome) if getElementData(localPlayer, "hunger") <= 0 then setElementData(localPlayer, "hunger", 10) setElementHealth(localPlayer, 0) end end end setTimer(repeatFome, timeFome, 0) function repeatSede() if getElementData(localPlayer, "afkdate") == true then return end if getElementData(localPlayer, "Sede:Logado") == true then Sede = getElementData(localPlayer, "sede") -1 SetarSede = setElementData(localPlayer, "sede", Sede) if getElementData(localPlayer, "sede") <= 0 then setElementData(localPlayer, "sede", 10) setElementHealth(localPlayer, 0) end end end setTimer(repeatSede, timeSede, 0) function VerificarFomeRepeat() if getElementData(localPlayer, "Fome:Logado") == true then Fome = getElementData(localPlayer, "hunger") if Fome > 100 then setElementData(localPlayer, "hunger", 100) end end end setTimer(VerificarFomeRepeat, 50, 0) function VerificarSedeRepeat() if getElementData(localPlayer, "Sede:Logado") == true then Sede = getElementData(localPlayer, "sede") if Sede > 100 then setElementData(localPlayer, "sede", 100) end end end setTimer(VerificarSedeRepeat, 50, 0)
  13. Olá Tenho esse script atualmente de fome e sede porem ele tambem da fome e sede para os staff eu gostaria de colocar para quem tem acl "Staff" nao ter sede nem fome alguem conseguiria me ajudar porfavor? Script Retirado da Internet timeFome = 108000 timeSede = 72000 function repeatFome() if getElementData(localPlayer, "afkdate") == true then return end if getElementData(localPlayer, "Fome:Logado") == true then dataFome = getElementData(localPlayer, "hunger") -1 setFome = setElementData(localPlayer, "hunger", dataFome) if getElementData(localPlayer, "hunger") <= 0 then setElementData(localPlayer, "hunger", 10) setElementHealth(localPlayer, 0) end end end setTimer(repeatFome, timeFome, 0) function repeatSede() if getElementData(localPlayer, "afkdate") == true then return end if getElementData(localPlayer, "Sede:Logado") == true then Sede = getElementData(localPlayer, "sede") -1 SetarSede = setElementData(localPlayer, "sede", Sede) if getElementData(localPlayer, "sede") <= 0 then setElementData(localPlayer, "sede", 10) setElementHealth(localPlayer, 0) end end end setTimer(repeatSede, timeSede, 0) function VerificarFomeRepeat() if getElementData(localPlayer, "Fome:Logado") == true then Fome = getElementData(localPlayer, "hunger") if Fome > 100 then setElementData(localPlayer, "hunger", 100) end end end setTimer(VerificarFomeRepeat, 50, 0) function VerificarSedeRepeat() if getElementData(localPlayer, "Sede:Logado") == true then Sede = getElementData(localPlayer, "sede") if Sede > 100 then setElementData(localPlayer, "sede", 100) end end end setTimer(VerificarSedeRepeat, 50, 0)
  14. n consigo configurar acl alguem me ajuda prfv necessito de ajuda pois n consigo configurar os cargos certinhos ex queria q o moderador edite somente os grupos de bases mas n consigo pois n consigo limitar isso ex moderador consegue se auto upar para dono(console) caso alguem saiba como resolve eu agredeceria mt de coraçao 2 dias tentando fazer isso
  15. quero fazer um script pra quando a pessoa estiver em rp não ter acesso ao painel p e quando for fazer rp de staff conseguir o painel, no jogo não deu nenhum erro mas ele não adiciona a acl, queria que a pessoa escrevesse o comando /suporteon pra conseguir o painel e /suporteoff para perder o painel dai pra conseguir o painel ela teria que entrar na acl Suporte por isso do comando, mas eu queria que só as pessoas que estivessem na acl suportecomando conseguissem usar esse comando, não sei se deu pra entender o script esta aqui em baixo se alguem puder me ajudar eu agradeço function ComandoPainelP () addAcl = aclGroupAddObject( aclgroup, Suporte, playerSource ) end addCommandHandler(suporteon, ComandoPainelP, false, true)
  16. ola pessoal, estou procurando um script que quando dou /melimpa ou tanto faz o cmd ele limpa as acl e grupos atribuidos a essa conta, não sei quais funções tenho que usar, pfv me ajudem.
  17. server.Lua local skins = function(id) for _, player in ipairs(getElementsByType("player")) do local uye = getPlayerAccount ( source ) if getPedOccupiedVehicle(source) and not isGuestAccount ( uye ) then triggerClientEvent(root,"skinUygula", source, getPedOccupiedVehicle(source),id) setAccountData ( uye, "hunter.skinID", id ) end end end addEvent("skinUygulaServer", true) addEventHandler("skinUygulaServer", root, skins) local skinsAktif = function() local uye = getPlayerAccount ( source ) if getPedOccupiedVehicle(source) and not isGuestAccount ( uye ) then id = getAccountData ( uye, "hunter.skinID" ) triggerClientEvent(root,"skinUygula", source, getPedOccupiedVehicle(source),id) end end addEvent("skinAktifServer", true) addEventHandler("skinAktifServer", root, skinsAktif)
  18. السلام عليكم ورحمة الله وبرككاتهه ء سويت سكربت اسل بشكل جديد وبخواص جديدة غير الأسل الاعتيادي الى أكثر السيرفرات تستعمله تقريباً نشوف وش هي خواص الأسل الجديد.. 1- رتب محددة مسموح بها وليس كل الرتب الى فى السيرفر لعدم التحكم الكامل ( C_Setting.Lua يمديك تعدل علي الرتب الى تبيها تظهر فى الاسل من خلال ملف ) - طبعا اكثر الناس يوم تعطيهم اسل يكون فيه كل الرتب احتمال كبير يسحبوا رتب مهمة من كونسيل اثناء عدم وجود حماية - 2- يظهر لك كل رتب الشخص المحدد عليه من القائمة 3- لوق خاص بالأسل , اثناء تواجدك فقط , يعني يوم تخرج يتمسح ويمديك تمسحه من زر مسح بس لازم تكون كونسيل 4- حماية من التكرار , قفل زر اعطاء وسحب رتبة بعد الضغط عليه لمدة مؤقته 5- شكل حلو للكتابة اثناء اعطاء او سحب رتب من شخص معين , اكتشفوها بنفسككم ء اللوحة تفتح للي معه قروب "ACL" تفتح عبر كتابة كلمة "acl" فى اف8 اللوق يفتح عبر كتابة كلمة "لوق" فى اف8 لازم تحط السكربت بقروب الادمن للعمل بشكل صحيح # طبعاً سويت السكربت لإني شايف اكثر السيرفرات تستعمل سكربت واحد حق اسل مافي تغييرات فى الاسل وكمان يظهر للي رح تعطيه اسل كل الرتب الى بالسيرفر وذي مشكلة رابط التحميل والصور https://community.multitheftauto.com/index.php?p=resources&s=details&id=16091 تقييمك للسكربت ورأيك يهمني .
  19. Opa blz! Preciso de ajuda, como fazer para deixar outro jogador que não seja do grupo "VIPCARRO" pelo menos pegar carona ?? ? ? E também como fazer pra colocar ao invés da ACL do grupo, colocar o veiculo pelo nick do jogador ??? function enterVehicle(thePlayer, seat, jacked) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if (getElementModel(source) == 602) and (not isObjectInACLGroup("user.".. accountName,aclGetGroup("VIPCARRO"))) then setVehicleLocked(source, true) outputChatBox("#ffff00SOMENTE MEMBROS DA #000000[ #ff0000Nome da gang #000000] #ffff00PODEM USAR ESSE VEICULO!", thePlayer) else setVehicleLocked(source, false) end end addEventHandler("onVehicleStartEnter",root,enterVehicle)
  20. Estou começando a programar em .Lua e gostaria de um pouco de ajuda nesse tema. Queria criar uma GUI que funcione para dar tags aos jogadores do servidor sem precisar ir na ACL e ficar digitando o login. Possivelmente por ID, mas nao tenho ideia de onde começar. Alguem indica uma maneira de fazer o script ou algum ja existente que eu possa comprar?
  21. Boa noite a todos, eu sou bem leigo em Lua, e toda vez que venho aqui fico feliz com a maneira que vocês fazem a gente entender pelo menos o minimo dos scripts que estamos tentando alterar, isso é sensacional. enfim. Hoje eu to com um problema em um sistema de spawn de vtr por acl. Queria que se possível me ajudassem a alterar o que quero nele. Spawn1 = createMarker(-65.258903503418, -343.11831665039, 5.4296875 -1,"cylinder", 1.9, 0, 0, 200, 40) Destroy = createMarker(-65.258903503418, -371.39807128906, 5.4296875 -2,"cylinder", 5.0, 128, 0, 0, 99) function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end veh = {} function spawnvtr ( thePlayer, comando, nick ) setElementHealth (veh, 200000) if veh[thePlayer] and isElement( veh[thePlayer] ) then destroyElement ( veh[thePlayer] ) veh[thePlayer] = nil end local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "BOMBEIROS") ) then veh[thePlayer] = createVehicle(529, -61.04016494751, -303.79797363281, 5.3578243255615, 0, 0, 270 ) warpPedIntoVehicle ( thePlayer, veh[thePlayer] ) --exports._infobox:addNotification(thePlayer, "", "success") else outputChatBox("#FFFFFF| #E10000BOMBEIROS #FFFFFF| Somente #E10000BOMBEIROS #FFFFFFPodem Pegar Este Veiculo.",thePlayer,255,255,255, true) end end addEventHandler("onMarkerHit", Spawn1, spawnvtr) function destroyvtr ( thePlayer ) if veh[thePlayer] and isElement(veh[thePlayer]) then destroyElement (veh[thePlayer]) --exports._infobox:addNotification(thePlayer, "", "success") else end end addEventHandler("onMarkerHit", Destroy, destroyvtr) Ele é bem simples, você passa em cima de um marker ele cria um determinado veiculo, e em cima de outro marker e ele destrói. Mas tem 2 poréns eu queria que um único player conseguisse spawnar quantos veículos ele quisesse, e quando ele spawna outro veículo, o anterior some. E o outro problema é que quando o player spawna o veículo e sai do server, ele não consegue mais desespawnar. Alguém pode me ajudar a resolver? Grato a Atenção
  22. então pessoal tento editar a acl do server até consigo porém logo em seguida quando atualizo o filezilla ele some e só consigo ficar com o nome da minha host no console, alguém pode me ajudar por favor?
  23. olá boa tarde, estou com dificuldade para limitar o script da concessionária para uma determinada ACL, onde apenas quem é "Vendedor" consegue abrir o painel da loja no marker e comprar o veículo, tentei de várias formas diferentes e nenhuma tive êxito, alguém poderia me ajudar? O sistema da loja é aquele mais comum mesmo, só que vou limitar a apenas um grupo poder acessar ele, enquanto os player terão acesso somente ao painel de veículos.
  24. Sziasztok írtam 1 scriptet ami nametag vagyis ha a karakter fölött mutatja a nevem akkor így "kellene" mutatnia ChrisT (Tulajdonos) De sajnos nem mutatja, mi lehet a baj? De nem jutottam semmire. Valaki nem tud 1-et adni?
  25. Hello pessoal, eu sou bem novo com esse negócio de server/mod/acl, mas do meus pulos. Eu to terminando de montar meu servidor mas não entendo direito como colocar um ACL de policial no arquivo acl.xml. Tipo eu baixei mod policial e tals e preciso colocar ele no acl ou seja ser um whitelist!!! Ai eu coloco o mod e tals parece quando aperto 'p' running mas eu nao sei como colocar no acl, já tentei no Manage ACL o comando e tals mas não consigo de forma alguma e tals ele nao cria um grupo queria ajuda de vcs para configurar isso!! Obrigado desde já no aguardo
×
×
  • Create New...