09.10.2013, 19:08
Код:
CMD:animals(playerid, params[])
{
for( new u; u < MAX_PLAYERS; u++ )
{
PlayAudioStreamForPlayer( u, "http://k002.kiwi6.com/hotlink/v01a10y69h/animals.mp3" );
}
SendClientMessageToAll(-1, "Now playing: Martin Garrix - Animals");
return 1;
}
Add this:
Код:
CMD:animals(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
for( new u; u < MAX_PLAYERS; u++ )
{
PlayAudioStreamForPlayer( u, "http://k002.kiwi6.com/hotlink/v01a10y69h/animals.mp3" );
}
}
else {
SendClientMessage(playerid, -1, "Nope!");
}
SendClientMessageToAll(-1, "Now playing: Martin Garrix - Animals");
return 1;
}
Im trying to make it so when 1 writes /animals, everybody on the server gets looped the stream.
Help apprecciated and will get repped.
Ty in advance!

