[FilterScript] Music 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] Music System (
/showthread.php?tid=583969)
Music System -
Inn0cent - 01.08.2015
Hello, Its a music system to play songs using mp3 URL.
Information
In this system a admin can run a music for players (using mp3 URL)
also he can stop it but if a player dont like the music
he can stop for his self using /stop.
Commands
/musica - Run the music using url for everyone.
/stopa - Stop it for every.
/stop - It will stop the song for the player who used this command.
Requirements
Zeex - ZCMD.
Code:
CMD:musica(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
if(isnull(params))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /musica [URL]");
SendClientMessage(playerid, COLOR_WHITE, "NOTE: /stopa to stop music!");
}
else
{
new string[128], name[24];
GetPlayerName(playerid,name,24);
format(string,sizeof(string),"Admin %s started a new song!",name);
SendClientMessageToAll(-1,string);
for(new i;i<MAX_PLAYERS;i++)
{
PlayAudioStreamForPlayer(i, params);
}
}
} else SendClientMessage(playerid, -1, "Invalid command.");
return 1;
}
CMD:stopa(playerid)
{
if(IsPlayerAdmin(playerid))
{
for(new i;i<MAX_PLAYERS;i++)
{
StopAudioStreamForPlayer(i);
}
} else SendClientMessage(playerid, -1, "Invalid command.");
return 1;
}
CMD:stop(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
Re: Music System -
justice96 - 01.08.2015
Not bad.
Re: Music System -
SpikY_ - 01.08.2015
Inno my baby, Awesome work.
Re: Music System -
RedLabel - 01.08.2015
Awesome work.
Re: Music System -
Inn0cent - 01.08.2015
Thanks Everyone.
Re: Music System -
Jakwob - 01.08.2015
Cool fs nice work
Re: Music System -
dangtruong - 06.08.2015
Thanks for share
Re: Music System -
Rei123 - 16.08.2015
Good FS! Congratulations.
Re: Music System -
xXSoUhAiLXx - 16.08.2015
Good