19.05.2014, 17:28
(
Последний раз редактировалось Banga; 20.05.2014 в 15:20.
)
Hello ,
I'm french, sorry for my english .
This tutoriel is going to learn you has to create an personal music
Requirement:
- ZCMD
- SSCANF
It's my first tutorial, sorry
Edit
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;
}
Edit