All hear music.
#6

Quote:
Originally Posted by irinel1996
Посмотреть сообщение
It's easy bro.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //---    
    if(strcmp(cmdtext, "/playmusicforall", true) == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
             PlayAudioStreamForPlayer(i, "http://somafm.com/tags.pls"); //Example.
        }
        return 1;
    }
    if(strcmp(cmdtext, "/stopmusicforall", true) == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            StopAudioStreamForPlayer(i); //Example.
        }
        return 1;
    }
    //---
    return 0;
}
I'm probably wrong dude but shouldn't it check If(IsPlayerConnected(i))
Reply


Messages In This Thread
All hear music. - by TouhGear - 19.12.2011, 10:57
Re: All hear music. - by Max_Coldheart - 19.12.2011, 10:58
Re: All hear music. - by demonarn - 19.12.2011, 13:38
Re: All hear music. - by TouhGear - 19.12.2011, 13:45
Respuesta: All hear music. - by [DOG]irinel1996 - 19.12.2011, 14:15
Re: Respuesta: All hear music. - by LiamM - 19.12.2011, 19:28

Forum Jump:


Users browsing this thread: 2 Guest(s)