if(listitem == 0)// (1-Jazz Radio)
{
if(pRadio[playerid] == 0)
{
for(new i; i < MAX_PLAYERS; i++)
{
new vehicle = GetPlayerVehicleID(playerid);
if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER && GetPlayerVehicleID(i) == vehicle)
{
Radio[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096",false,false,false);
pRadio[playerid] = 1;
pRadioID[playerid] = 0;
}
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "[MUSIC ERROR]: You're already playing a radio station!");
}
}
new vehicle = GetPlayerVehicleID(playerid);
if(listitem == 0)// (1-Jazz Radio)
{
if(pRadio[playerid] == 0)
{
new vehicle = GetPlayerVehicleID(playerid);
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i, vehicle)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
{
Radio[playerid] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096",false,false,false);
pRadio[playerid] = 1;
pRadioID[playerid] = 0;
}
}
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "[MUSIC ERROR]: You're already playing a radio station!");
}
}
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i, vehicle))
{
Radio[i] = Audio_PlayStreamed(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096",false,false,false);
pRadio[i] = 1;
pRadioID[i] = 0;
}
}
Radio[i] = Audio_PlayStreamed(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096",false,false,false);
Radio[i] = Audio_PlayStreamed(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096",false,false,false);
|
pawn Код:
pawn Код:
|
if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)