25.05.2013, 18:34
Bro's can someone know, like If I want to play from [url] everybody can here it? example... /play [url]
or any?? please
or any?? please
stock PlayAudioStreamForAll(url[])
{
for(new i; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected( i ))
{
PlayAudioStreamForPlayer(i, url, x, y, z, distance);
}
}
return 1;
}
PlayAudioStreamForPlayer(playerid, "URL HERE", X, Y, Z, Distance, 1);
// zCMD
CMD:play(playerid, params[])
{
if(strlen(params) == 0) return SendClientMessage(playerid, -1, "USAGE: /play [url]");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
StopAudioStreamForPlayer(i);
PlayAudioStreamForPlayer(i, params);
}
}
return 1;
}