PlayAudioStreamForPlayer Help
#1

pawn Код:
CMD:smfa(playerid, params[])
{
    foreach(Player, i)
    {
                if (PlayerInfo[playerid][Level] >= 4)
                {
                    if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /smfa [Link]");
                    PlayAudioStreamForPlayer(i, params);
        }
        }
    return 1;
}
when i use this command it sends clientmessagetoall that what link is being played...but i want that the link doesnt show up and rather just shows up to the admin who is streaming...

any kind of help would be much appreciated.
Reply
#2

This is a question we have all asked at some point. I spent like a ton of time trying to find a way.The answer is your sort of out of luck. The SA-MP developers scripted it to always do that, nothing in your scripting will work to remove it.

The only fix/workaround is clearing the chat directly after it sends the play audio command.
Reply
#3

pawn Код:
CMD:smfa(playerid, params[])
{
    if(PlayerInfo[playerid][Level] >= 4)
    {
        if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /smfa [Link]");
        for(new i; i < MAX_PLAYERS; i++) // loop all the players
        {
            PlayAudioStreamForPlayer(i, params);
        }
    }
    else return SendClientMessage(playerid,COLOR_RED,"You not hight enough level to use this command");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)