+rep Server Crash if i tape /stopbreach
#6

You can do it by this way:
PHP код:
SetTimerEx("Aduioz"170000"di"playerid0); // set the timer for player with audio id 0 
PHP код:
forward public Aduioz(playeridaudioz);
public 
Aduioz(playeridaudioz) {
   switch(
audioz) { // switch audio idz
      
case 0: { // check if id is 0
         
PlayAudioStreamForPlayer(playerid"http://vignette4.wikia.nocookie.net/containmentbreach/images/2/22/Alarm2.ogg/revision/latest?cb=20130914185645"); // player song 1
         
SetTimerEx("Aduioz"170000"di"playerid1); // set timer to play song 2
      
}
      case 
1: { // check if song id is 1
         
PlayAudioStreamForPlayer(playerid"https://hydra-media.cursecdn.com/scpcb.gamepedia.com/f/f3/HCZ_Background.ogg"); // player song 2
         
SetTimerEx("Aduioz"170000"di"playerid175566); // set timer to stop song
      
}
      case 
175566,default: // check if id match with stop audio id
         
StopAudioStreamForPlayer(playerid); // stop song for player
      
}
   }

Reply


Messages In This Thread
+rep Server Crash if i tape /stopbreach - by Eymeric69 - 29.05.2016, 17:20
Re: +rep Server Crash if i tape /stopbreach - by Konstantinos - 29.05.2016, 17:41
Re: +rep Server Crash if i tape /stopbreach - by Eymeric69 - 29.05.2016, 18:25
Re: +rep Server Crash if i tape /stopbreach - by Konstantinos - 29.05.2016, 18:44
Re: +rep Server Crash if i tape /stopbreach - by Eymeric69 - 30.05.2016, 06:14
Re: +rep Server Crash if i tape /stopbreach - by jlalt - 30.05.2016, 06:30
Re: +rep Server Crash if i tape /stopbreach - by Eymeric69 - 30.05.2016, 16:28
Re: +rep Server Crash if i tape /stopbreach - by Eymeric69 - 30.05.2016, 16:57
Re: +rep Server Crash if i tape /stopbreach - by Noris - 30.05.2016, 17:10

Forum Jump:


Users browsing this thread: 3 Guest(s)