Jump to content

#RooTs

Members
  • Posts

    1,991
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. @Rafael eu acho que você não coloco sua posição na linha 9 do Código do Tremidinha setElementPosition(thePlayer,seuX,seuY,seuZ)
  2. só editando a GameMode do seu servidor
  3. Your welcome
  4. add function in Client.lua Example function startSound (killer, weapon, bodypart) showPlayerHudComponent ( 'radar', false ) sound = playSound("music/music.mp3", true) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), startSound) function destroySound() showPlayerHudComponent ( 'radar', true ) if isElement(sound) then stopSound(sound) end end addEventHandler("onClientPlayerSpawn", getLocalPlayer(), destroySound)
  5. não sabia disso vlw por me explicar
  6. Sorry. desculpe
  7. Xeon troque o "attacter" por "attacker" sua linha está if (attacter and weapon == 69 and bodypart == Head) then atualizada fica if (attacker and weapon == 69 and bodypart == Head) then se caso tiver mais algum erro, revisa o seu roteiro
  8. @a0qH, @PoWeR_, @XeoN-, Thanks
  9. @GTX, this way is very difficult to do.
  10. is this a joke? Body: 21: FAT 22: STAMINA 23: BODY_MUSCLE 24: MAX_HEALTH -- MAX ARMOR does not exist 25: SEX_APPEAL
  11. It is only possible in health 200%
  12. Your welcome
  13. I tested and removed the bugs from your script Meta.xml Client.lua Server.lua
  14. give-me your code, please
  15. @HUNGRY:3, @TheSmart. Thanks my friends :D
  16. try this client.lua addEvent ("StopSound", true) addEventHandler ("StopSound", root,function() stopSound(sound) end) server.lua function SoundStoped () triggerClientEvent (source, "StopSound", source) end addEventHandler('onPlayerSpawn', root, SoundStoped)
  17. try this function stopSound() stopSound(sound) end addEventHandler("onClientPlayerSpawn", getLocalPlayer(), stopSound )
  18. HUD Original in Libery City Result end Video demonstrative
  19. In meta "Spawn/music/music.mp3" /> In LUA sound = playSound("Spawn/music/music.mp3", true) Your code in lua sound = playSound("music/music.mp3", true) add all folder as a path
  20. OMG
  21. Your code --music function startSound (killer, weapon, bodypart) local sound = playSound("music/music.mp3") --Play wasted.mp3 from the sounds folder setSoundVolume(sound, 0.5) -- set the sound volume to 50% end addEventHandler("onClientPlayerWasted", getLocalPlayer(), startSound) --add the event handler function stopSound() stopSound(sound) end addEventHandler("onClientPlayerSpawn", getLocalPlayer(), stopSound) --add the event handler
  22. try this function wasted (killer, weapon, bodypart) -- Input the name of the function local sound = playSound("wasted.mp3") -- Play wasted.mp3 from the sounds folder setSoundVolume(sound, 1.0) -- set the sound volume to 50% end addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) or addEventHandler( "onClientPlayerWasted", getLocalPlayer(), function() playSound("wasted.mp3") end)
  23. use setTimer example setTimer(function() stopSound("music.mp3")...................
  24. tente criar um com essas funções addCommandHandler setElementHealth givePedWeapon setPlayerArmor addEventHandler onResourceStart
  25. tem um script que já vem com o MTA ( headshot ) só ligar ele, e atirar com qualquer arma na cabeça do jogador. apenas 1 tiro na cabeça
×
×
  • Create New...