[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


Messages In This Thread
Personal Music - by Banga - 19.05.2014, 17:28
Re: Personal Music - by dusk - 19.05.2014, 18:52
Re: Personal Music - by Hiddos - 19.05.2014, 19:04
Re: Personal Music - by Joeyer5 - 20.05.2014, 11:40
Re : Personal Music - by Banga - 20.05.2014, 18:13

Forum Jump:


Users browsing this thread: 1 Guest(s)