[Tutorial] Personal Music - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (
https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Personal Music (
/showthread.php?tid=514088)
Personal Music -
Banga - 19.05.2014
Hello ,
I'm french, sorry for my english
.
This tutoriel is going to learn you has to create an personal music
Requirement:
-
ZCMD
-
SSCANF
pawn Код:
COMMAND:music(playerid, params[]) // We create the command
{
new link[128]; // We put new link 128, 128 corresponding among maximum character
if(sscanf(params,"s[128]",link)) // Whe use sscanf for this tutoriel
{
SendClientMessage(playerid, COLOR_CMD, "/music link.mp3"); // We create the command
}
PlayAudioStreamForPlayer(playerid,link); // We throw the audiostream which it will have use in the command
SendClientMessage(playerid, COLOR_ADMIN, "ENJOY"); // Enjoy ;)
return 1;
}
It's my first tutorial, sorry
Edit
Re: Personal Music -
dusk - 19.05.2014
If this is so players could play their own songs, why wouldn't they just play it on their computer? Why would they go through all of this?
Re: Personal Music -
Hiddos - 19.05.2014
nice tutorial
I just learned nothing and understood even less
Re: Personal Music -
Joeyer5 - 20.05.2014
Even though I presume the code is good, in a tutorial you explain why you use certain code.
Re : Personal Music -
Banga - 20.05.2014
Edit