21.03.2017, 15:01
Quote:
@x337 how can i make a cmd that ******* song play with a cmd and stop with a cmd?
|
PHP код:
CMD:play(playerid, params[])
{
new song[40];
if(!sscanf(params, s[40], song)) //Seeing if the params is string.
{
Play*******Song(playerid, song); //Then using the function of X337
}
else SCM(playerid, -1, "USE: play [Song url]"); //else if the param isn't string send the following message.
return 1;
}
CMD:stop(playerid)
{
StopAudioStreamForPlayer(playerid); //This function to stop the audio (self describing)
return 1;
}