Ruskadance
Умник
Команда чтобы включить музыку всему серверу))
PHP:
if(!strcmp(cmd,"/musicall",true))
{
if(PlayerInfo[playerid][pAdmin] >= 8)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i)) continue;
{
PlayAudioStreamForPlayer(i,"http://www.zaycev.fm:9001/ZaycevFM(128).m3u");
}
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "Админ %s включил всем музыку",sendername);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
}
}
}
PHP:
if(!strcmp(cmd,"/offmusicall",true))
{
if(PlayerInfo[playerid][pAdmin] >= 8)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i)) continue;
StopAudioStreamForPlayer(i);
}
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "Админ %s выключил всем музыку",sendername);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
}
}
PHP:
if(!strcmp(cmd,"/offmusic",true))
{
StopAudioStreamForPlayer(playerid);
format(string, sizeof(string), "Вы выключили себе музыку");
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
}
Последнее редактирование:
