[Tutorial] Personal Music
#1

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
Reply
#2

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?
Reply
#3

nice tutorial

I just learned nothing and understood even less
Reply
#4

Even though I presume the code is good, in a tutorial you explain why you use certain code.
Reply
#5

Edit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)