Play Audio Stream For Player
#1

Hey I need an Audio Stream For Admins Like IF The admin wants to play for a player some music he will do that
/aurlplay
Thanks For All
Reply
#2

PHP код:
/*YCMD:musicforall(playerid, params[], help)
{
    new link[256];
    if(sscanf(params, "s[256]", link)) return SendUsage(playerid,"/musicforall <link>");
    foreach(Player, i)
    {
        StopAudioStreamForPlayer(i);
        PlayAudioStreamForPlayer(i, link);
    }
    return 1;

it has to be .mp3
Reply
#3

Its for all players or certain player?
Reply
#4

Quote:
Originally Posted by AdmiNi
Посмотреть сообщение
Its for all players or certain player?
all players

This is for certain player

Код:
CMD:musicforplayer(playerid, params[]) 
{ 
    new id, link[256]; 
    if(sscanf(params, "us[256]", id, link)) return SendClientMessage(playerid, -1, "/musicforplayer [PlayerID] [Link]"); 
    
    StopAudioStreamForPlayer(id); 
    PlayAudioStreamForPlayer(id, link); 
 
    return 1; 
}
Reply
#5

Quote:
Originally Posted by kingmk
Посмотреть сообщение
all players

This is for certain player

Код:
CMD:musicforplayer(playerid, params[]) 
{ 
    new id, link[256]; 
    if(sscanf(params, "us[256]", id, link)) return SendClientMessage(playerid, -1, "/musicforplayer [PlayerID] [Link]"); 
    
    StopAudioStreamForPlayer(id); 
    PlayAudioStreamForPlayer(id, link); 
 
    return 1; 
}
Thank you very much! +rep
Reply
#6

You know how to stop his music?
Reply
#7

StopAudioStreamForPlayer - G00gle is a good friend, you definitely should talk to him.
Reply
#8

Quote:
Originally Posted by AdmiNi
Посмотреть сообщение
Its for all players or certain player?
its for all players. you can customize it to play for some players only or at a custom range.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)