Jump to content

#RooTs

Members
  • Posts

    1,990
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

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