24.06.2013, 07:26
Problems-Spams The ClientMessage like Crazy, Wont let me enter a URL at all
pawn Код:
if(strcmp(cmd, "/playall", true) == 4)
{
if(PlayerInfo[playerid][pDJ] < 1) return SendClientMessage(playerid, COLOR_WHITE, "DJ Only Command");
if(!cmdtext[4]) return SendClientMessage(playerid, -1, "USAGE: /playforall [url]");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
PlayAudioStreamForPlayer(i, cmdtext[4]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can stop playing this song with /stopall");
SendClientMessage(i, COLOR_LIGHTBLUE, "An DJ has started playing a song (use /stopaudio to stop this song for you");
}
return 1;
}