Jump to content

Dinho

Members
  • Posts

    11
  • Joined

  • Last visited

Recent Profile Visitors

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

Dinho's Achievements

Square

Square (6/54)

0

Reputation

  1. Certo, e como faço para chamar as 2 armas do slot 5, que seria a AK e M4 Tentei criar uma tabela mas não funcionou. Alguma ideia de como posso prosseguir ? weapon = {30,31} local Armamento = getPedWeapon ( source, 5 ) if Armamento == weapon then
  2. Olá, preciso da ajuda dos senhores para conseguir identificar que o player está portando a arma seleciona(AK-47) mesmo sem está com ela nas mãos, para aí sim executar a função. local Armamento = getPedWeapon ( source ) local NomeDaArma = getWeaponNameFromID ( Armamento ) local getSlot = getPedWeaponSlot(source,Armamento) if getPedWeaponSlot(source, getSlotFromWeapon(5)) then triggerClientEvent(source, "Server:CallNotifications", root, "Você já possui uma "..NomeDaArma.." equipada", "info") else giveWeapon (source, 30, 1) setElementData ( source, "AK_va", getElementData(source, "AK_va") - 1 ) triggerClientEvent(source, "Server:CallNotifications", root, "Você equipou "..WeaponSelect.."", "success") end end
  3. Alguma outra alternativa? Deixa, vou fazer por acl msm tá suave.
  4. Não sei por que, mesmo estando em passivo ele continua podendo roubar. Alguém com capacidade de me ajudar? function CAIXA(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, roubarcofre) then if (getElementData(player, "Passivo") == true) then outputChatBox("#FF0000AVISO* #FFFFFFNesse servidor é proibido Assaltos em Modo PASSIVO", player, 255,255,255, true) else setPlayerWantedLevel(thePlayer, getPlayerWantedLevel(thePlayer) + 1) setPedAnimation(thePlayer,"bomber", "BOM_Plant_Loop", 10500, true, false, false, false) triggerClientEvent(thePlayer, "dxClient", thePlayer) setElementPosition(roubarcofre, 3099.97, -3281.69, -0.5) triggerClientEvent(root, "caixas", root, getPlayerName( thePlayer ) ) do setTimer(setElementPosition, 200000, 1, roubarcofre, 2234.76, -1666.924, 15.284 -1) local money = getPlayerMoney(thePlayer) setPlayerMoney(thePlayer, 3000+money) end end end end addCommandHandler("roubar", CAIXA)
  5. Não consigo definir quando o player VIP pegar o carro 1 e for trocar pro carro 2 destruir o carro 1. local vipcar = {} addEvent("vgAcao03", true) addEventHandler("vgAcao03", resourceRoot, function(item) if getPedOccupiedVehicle(source) then triggerClientEvent ( client, "exibirNotificacao", resourceRoot, "desativado", item, "Saia do veiculo primeiro!") return end if vipcar[source] and isElement(vipcar[source]) then destroyElement(vipcar[source]) end if (vipcar[client]) and (isElement(vipcar[client])) then destroyElement(vipcar[client]) end if isPedInVehicle(client) then removePedFromVehicle(client) end local rx,ry,rz = getElementRotation(client) local x,y,z = getElementPosition(client) vipcar[client] = createVehicle(451,x,y,z,rx,ry,rz) warpPedIntoVehicle(client,vipcar[client]) triggerClientEvent ( client, "exibirNotificacao", resourceRoot, "ativado", item, "Você pegou o carro VIP") end )
  6. Ele já vem, basta usar os comandos /register [NICK] [SENHA] e /login [NICK] [SENHA]. mais para ficar um negocio organizado é você colocar um painel de login
  7. Eu já procurei muito mais não acho algo para salvar os kill e death do scoreboard
  8. Olá eu estou tentando colocar temporizador nesse script de vida/colete mais não consigo code commando = { } tempo = 20000 --Extra Gesundheit einkaufen! function buyhealth ( thePlayer ) if (commando[playerSource]) then return outputChatBox ( "Aguarde 15 segundos para user o comando novamente", playerSource, 255, 0, 0, true ) end local money = getPlayerMoney ( thePlayer ) if money >= 250 then outputChatBox ('#ffffff[#00FF00Vida#ffffff] ' .. getPlayerName(thePlayer) .. '#ffffff Comprou Uma [#00FF00/vida#ffffff] Por #00FF00R$: 500', root, 255, 255, 255, true) commando[playerSource] = true setTimer( function() commando[playerSource] = false local thePlayerhealth = getElementHealth ( thePlayer ) setElementHealth ( thePlayer, 569 ) takePlayerMoney ( thePlayer, 500 ) else outputChatBox("A Vida Custa 500$!",thePlayer, 255, 0, 0) end, tempo, 1) end addCommandHandler ( "vida", buyhealth )
  9. Cara sem o FreeRoam voce perde muitas funçoes, por que voce não tira só as opções indesejáveis
  10. Preciso que me ajudem a retirar o nome da radio que fica em cima isso é muito chato, Eu sou iniciante no MTA Server então eu preciso de um pouco de paciência de vocês.
  11. I want to remove where it is in red Se tiver algum brasileiro responda em portugues obrigado.
×
×
  • Create New...