How to create a command that plays Audio.
#5

Use a loop then.

Default SA-MP Example:
pawn Код:
CMD:test(playerid, params[]) {
    for(new i = 0; i < MAX_PLAYERS; i++) {
        PlayAudioStreamForPlayer(i, "audiostream");
    }
    return 1;
}
Foreach Example:
pawn Код:
CMD:test(playerid, params[]) {
    foreach(new i: Player) {
        PlayAudioStreamForPlayer(i, "audiostream");
    }
    return 1;
}
Reply


Messages In This Thread
How to create a command that plays Audio. - by Mrashad - 19.09.2014, 04:54
Re: How to create a command that plays Audio. - by The__ - 19.09.2014, 05:00
Re: How to create a command that plays Audio. - by Team_PRO - 19.09.2014, 05:13
Re: How to create a command that plays Audio. - by Mrashad - 19.09.2014, 23:53
Re: How to create a command that plays Audio. - by JacobEdwards - 20.09.2014, 00:03
Re: How to create a command that plays Audio. - by Mrashad - 21.09.2014, 07:43
Re: How to create a command that plays Audio. - by Mrashad - 21.09.2014, 08:52
Re: How to create a command that plays Audio. - by Mrashad - 21.09.2014, 14:24
Re: How to create a command that plays Audio. - by ReD_HunTeR - 23.09.2014, 18:22

Forum Jump:


Users browsing this thread: 3 Guest(s)