Alex0002 Posted December 30, 2013 Share Posted December 30, 2013 Buenas a todos, pues he estado añadiendo una música al login de PARADISE (Gamemode de roleplay), y todo perfecto, pero la cancion no se para, he pensado en cortar la cancion a 5 segundos, pero..., no todo el mundo tarda lo mismo en logearse y sería una chapuza, aquí todo el fragmento. Si alguien me pudiese ayudar, lo agradecería local messageTimer local messageCount = 0 sound = playSound("sonido.mp3") function stopSonido() stopSound(sonido) end addEventHandler("onClientPlayerSpawn", root, stopSonido) Link to comment
MTA Team 0xCiBeR Posted December 30, 2013 MTA Team Share Posted December 30, 2013 Definiste mal el sonido en stopSound. Ponelo asi: local messageTimer local messageCount = 0 sound = playSound("sonido.mp3") function stopSonido() stopSound(sound) end addEventHandler("onClientPlayerSpawn", root, stopSonido) Link to comment
Recommended Posts