[FilterScript] songs system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] songs system (
/showthread.php?tid=483676)
songs system -
Gamo - 27.12.2013
I want a songs system in which I can put my songs to it
When they join the server the songs start playing and automatically the song starts after each one
If there is any fs like this?
Please help..
Re: songs system -
Flaken - 27.12.2013
I'll script it for you!
Код:
#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;
}
If you want to add another song, just add case 1,and so.