27.12.2013, 14:04
I'll script it for you!
If you want to add another song, just add case 1,and so.
Код:
#include zcmd #include Dini #include streamer #include foreach #define DIALOG_SONG 1487 #define MAX_SONGS 1 ----------------------------- public OnPlayerConnect (playerid) if(dini_Int(File,"UseSong") == 1) PlaySong(playerid,random(MAX_SONGS)); ------ stock PlaySong(playerid,songid) { if(dini_Int(File,"UseSong") == 0) return SendClientMessage(playerid,COLOR_RED,"Songs have been disabled by an admin!"); switch(songid) { case 0:PlayAudioStreamForPlayer(playerid,"http://dimi-sa-mp.weebly.com/uploads/7/0/2/3/7023626/christmas_songs_-_we_wish_you_a_merry_chrismas.mp3",0.0,0.0,0.0,350.0,0); default: return 1; } return 1; }