17.12.2015, 19:19
how about this?
Код:
public OnPlayerDeath(playerid,killerid,reason) { new url[120]; switch(random(5)) { case 0: url="..."; case 1: url="..."; case 2: url="..."; case 3: url="..."; case 4: url="..."; //your URLs in these fields. Add more or less depends of number of your sounds. } PlayAudioStreamForPlayer(playerid,url,0.0,0.0,0.0,0.0,0); return 1; }