Jump to content

ythalo04

Members
  • Posts

    5
  • Joined

  • Last visited

ythalo04's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Muito obrigado cara! Muito obrigado mesmo de coração, que Deus lhe abençoe valeuuuuuuuuuu Acredito que isso irá ajudar muitas pessoas !!!!!!!
  2. Eu fui ver o arquivo meta e ele está em server-side... Então no caso, eu terei que ter 2 arquivos, 1 client-side para a função DanoBlindado e outro server-side para o Blindar, seria isso? Me perdoem, eu estou realmente confuso kkk Muito obrigado pela atenção de vocês Pois assim, eu testei diversas vezes e de várias formas, e estou realmente quebrando a cabeça para realizar este script... Tinha vezes que o carro blindava, mas ai ao entrar novamente no veiculo ele desblindava... sabe?!
  3. Então meu código está correto? Só a parte client, servidor que está errada? Vou testar aqui agora... mas queria saber se o código da forma que fiz se está correta kkkkkkkk valeuuu
  4. ah okay, sou novo, valeuu function blindar() local blindar = getPedOccupiedVehicle ( localPlayer ) local verificar = isVehicleDamageProof( localPlayer ) if (blindar) then if getElementModel(blindar) == 601 then if (verificar) then outputChatBox ( "Este Veiculo é blindado!", source, 255,255,255,true) elseif (verificar) == false and (blindar) == 601 then setVehicleDamageProof(blindar, true) end end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), blindar) function DanoBlindado ( attacker, weapon, bodypart ) local blindadocar = getPedOccupiedVehicle ( localPlayer ) if (blindadocar) then if getElementModel(blindadocar) == 601 then cancelEvent() setElementHealth(localPlayer, 100) end end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), DanoBlindado )
  5. Estou tentando criar um script, que torne um certo veiculo blindado... Verificando se o jogador está nesse veiculo em especifico, e também verificando se o veiculo já está blindado, para não tirar a blindagem do mesmo, caso ele já esteja blindado... Também quero tornar o jogador "imortal" enquanto estiver dentro do veiculo!! Alguém pode me ajudar?? Muito obrigado Este é o código: function blindar() local blindar = getPedOccupiedVehicle ( localPlayer ) local verificar = isVehicleDamageProof( localPlayer ) if (blindar) then if getElementModel(blindar) == 601 then if (verificar) then outputChatBox ( "Este Veiculo é blindado!", source, 255,255,255,true) elseif (verificar) == false and (blindar) == 601 then setVehicleDamageProof(blindar, true) end end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), blindar) function DanoBlindado ( attacker, weapon, bodypart ) local blindadocar = getPedOccupiedVehicle ( localPlayer ) if (blindadocar) then if getElementModel(blindadocar) == 601 then cancelEvent() setElementHealth(localPlayer, 100) end end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), DanoBlindado ) alguém me ajuda, onde estou errando... sou novo em programação! Valeu
×
×
  • Create New...