switch(random(8))// число должно равняться последнему кейсу. { case 0: PlayAudioStreamForPlayer(playerid, "http://grand-samp.clan.su/7fb77afc17f7.mp3"); case 1: PlayAudioStreamForPlayer(playerid, "http://grand-samp.clan.su/9fc048752087.mp3"); case 2: PlayAudioStreamForPlayer(playerid, "http://grand-samp.clan.su/b5bea75cda28.mp3"); case 3: PlayAudioStreamForPlayer(playerid, "http://grand-samp.clan.su/c04b0e1201d7.mp3"); case 4: PlayAudioStreamForPlayer(playerid, "http://grand-samp.clan.su/7c88f4b19608.mp3"); case 5: PlayAudioStreamForPlayer(playerid, "http://grand-samp.clan.su/13ed17cd7b3e.mp3"); case 6: PlayAudioStreamForPlayer(playerid, "http://grand-samp.clan.su/8c72c0aa29a1.mp3"); case 7: PlayAudioStreamForPlayer(playerid, "http://grand-samp.clan.su/b2808f0e1465.mp3"); }
public OnPlayerSpawn:
StopAudioStreamForPlayer(playerid);
Автор: Netflashman