Jump to content

#RooTs

Members
  • Posts

    1,990
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. you're funny? I am a while without programming. and so I end up forgetting something. bad that is no reason to mock the other boy right
  2. thanks. how to add transparency to the object? example Armor = getPlayerArmor ( player ) ( 255*Armor ) Bribe[player] = createObject(1242,x,y-8,z); setObjectScale ( Bribe[player], 1.9 ) setElementCollisionsEnabled(Bribe[player],false) exports.bone_attach:attachElementToBone(Bribe[player],player,3,0,0,0,3,-5,0)
  3. how I could increase the size of the object? Bribe[player] = createObject(1242,x-2,y,z); setElementCollisionsEnabled(Bribe[player],false) attachElements (Bribe[player],player,-0.0,0.0,0.3) ;
  4. I could do with "createObject". more the camera was zuada, get close to more of my ped could someone explain me how to do it with "bone attachments"
  5. Hello friends. I'm trying to make show the vest, "object" while I'm of armor ... and then I'm losing armor the object gets transparent. I have no idea how to do, and what to use. what would be the best choice function? "createObject" or "bone attachments" https://community.multitheftauto.com/index.php?p ... ls&id=2540 My thought was that function getArmour() local amour = getPlayerArmor(source) if amour >= 100 then x, y, z = getElementPosition(source) Obj = createObject(ID, x, y, z, 0, 0, 0) -- set transparency in the object attachElements(source. Obj) end end setTimer(getArmour, 1500, source) sorry my english
  6. mandei uma MP(mensagem privada) para você, leia ela.
  7. mandei uma MP(mensagem privada) para você, leia ela.
  8. #RooTs

    Server list spam

    the guy is creating fake servers to get fame. even he had already created a fake server, with the same name of my.... he is always creating intrigues among the owners of real servers, here in Brazil. Original: mtasa://192.99.141.242:22003 fake: mtasa://107.161.124.140:22003 DONE
  9. #RooTs

    Server list spam

    the guy is creating fake servers to get fame. even he had already created a fake server, with the same name of my.... he is always creating intrigues among the owners of real servers, here in Brazil. Original: mtasa://192.99.141.242:22003 fake: mtasa://107.161.124.140:22003 DONE
  10. put screenshot, or I will not download
  11. File uploaded successfully! get the url by private message.
  12. ped skin https://community.multitheftauto.com/ind ... s&id=12916 DONE
  13. -- segue a tabela com os comandos bloqueados. remove o comando q quer desbloquear cmdList = { ["register"]=true, ["login"]=true, ["me"]=true, ["say"]=true } addEventHandler("onPlayerCommand", root, function(cmdName) if cmdList[cmdName] then cancelEvent() end end)
  14. existe sim Dante. quais comandos quer bloquear. faça uma lista q te mando o exemplo
  15. se o dinheiro for maior que a quantia oferecida
  16. use https://wiki.multitheftauto.com/wiki/GetVehicleOccupant
  17. Creio que a outra parte do seu "sistema" contenha, setElementHealth (carro , getElementHealth (carro ) 1000) --definido setVehicleLocked ( carro , false ) --definido takePlayerMoney ( thePlayer, 350 ) --definido porque se não for isso, vai fazer mais sentido usar o meu exemplo do que a sua função final. mais de qualquer forma a sua ideia é boa...
  18. duplicate. It is the same code code 1 https://community.multitheftauto.com/in ... ls&id=5955 https://community.multitheftauto.com/in ... ls&id=2372 duplicate code 2 https://community.multitheftauto.com/in ... ils&id=591 https://community.multitheftauto.com/in ... ils&id=594 no description https://community.multitheftauto.com/ind ... s&id=12857 DONE
  19. @Pedro, você quer que o veiculo quando explode com ou sem player dentro retorne para o lugar aonde saiu ? eu entendi isto, se for isso mesmo tente esse code aqui. local model = 400 local vehicle = createVehicle ( model, -708.98931884766,950.66259765625,11.769227981567 ) -- criar veiculo em uma Pos no mapa function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) ou você pode tentar este outro exemplo function respawnVehicle( vehicle ) spawnVehicle ( vehicle, getElementData( vehicle, "posX" ), getElementData( vehicle, "posY" ), getElementData( vehicle, "posZ" ), getElementData( vehicle, "rotX" ), getElementData( vehicle, "rotY" ), getElementData( vehicle, "rotZ" ) ) end function onVehicleSpawn () local x,y,z = -708.98931884766,950.66259765625,11.769227981567 setElementData (source,"posX",x) setElementData (source,"posY",y) setElementData (source,"posZ",z) end addEventHandler ("onVehicleExplode",getRootElement(),onVehicleSpawn) function onVehicleExplode () setTimer( respawnVehicle, 5000, 1, source ) end addEventHandler("onVehicleExplode", getRootElement(), onVehicleExplode)
×
×
  • Create New...