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. 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)
  4. não sabia disso vlw por me explicar
  5. 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
  6. @a0qH, @PoWeR_, @XeoN-, Thanks
  7. @GTX, this way is very difficult to do.
  8. is this a joke? Body: 21: FAT 22: STAMINA 23: BODY_MUSCLE 24: MAX_HEALTH -- MAX ARMOR does not exist 25: SEX_APPEAL
  9. It is only possible in health 200%
  10. I tested and removed the bugs from your script Meta.xml Client.lua Server.lua
  11. give-me your code, please
  12. @HUNGRY:3, @TheSmart. Thanks my friends :D
  13. 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)
  14. try this function stopSound() stopSound(sound) end addEventHandler("onClientPlayerSpawn", getLocalPlayer(), stopSound )
  15. HUD Original in Libery City Result end Video demonstrative
  16. 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
  17. 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
  18. 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)
  19. use setTimer example setTimer(function() stopSound("music.mp3")...................
  20. tente criar um com essas funções addCommandHandler setElementHealth givePedWeapon setPlayerArmor addEventHandler onResourceStart
  21. 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...