Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Sad_Violin
- {
- using GTA;
- using NAudio.Wave;
- using System;
- public class Violin : Script
- {
- public Violin()
- {
- base.Interval = 0x1388;
- base.Tick += new EventHandler(this.tickEvent);
- }
- public void tickEvent(object sender, EventArgs e)
- {
- new WaveFileReader(@".\Scripts\Violin\1.wav");
- WaveChannel32 waveProvider = new WaveChannel32(new WaveFileReader(@".\Scripts\Violin\1.wav"));
- DirectSoundOut @out = new DirectSoundOut();
- if (base.Player.Character.isDead)
- {
- @out.Init(waveProvider);
- @out.Play();
- base.Wait(0x2710);
- @out.Stop();
- @out.Dispose();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment