12.04.2014, 17:00
how to add more custom radio chanel on my boombox or /setstation
I saw NGG have a search when you press the key word they will found a lot of list radio music to hear or news , how to edit that sprits , help me
this is example for my code
else if(listitem == 2)
{
if(IsPlayerInAnyVehicle(playerid))
{
foreach(Player, i) if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) {
PlayAudioStreamForPlayerEx(i, "http://www.powerhitz.com/ph.pls");
}
format(stationidv[GetPlayerVehicleID(playerid)], 64, "%s", "http://www.powerhitz.com/ph.pls");
format(string, sizeof(string), "* %s changes the radio station.", GetPlayerNameEx(playerid), string);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
else if(GetPVarType(playerid, "pBoomBox"))
{
foreach(Player, i)
{
if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea")))
{
PlayAudioStreamForPlayerEx(i, "http://www.powerhitz.com/ph.pls", GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"), 30.0, 1);
}
}
SetPVarString(playerid, "pBoomBoxStation", "http://www.powerhitz.com/ph.pls");
}
else
{
PlayAudioStreamForPlayerEx(playerid, "http://www.powerhitz.com/ph.pls");
SetPVarInt(playerid, "MusicIRadio", 1);
}
}
I saw NGG have a search when you press the key word they will found a lot of list radio music to hear or news , how to edit that sprits , help me
this is example for my code
else if(listitem == 2)
{
if(IsPlayerInAnyVehicle(playerid))
{
foreach(Player, i) if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) {
PlayAudioStreamForPlayerEx(i, "http://www.powerhitz.com/ph.pls");
}
format(stationidv[GetPlayerVehicleID(playerid)], 64, "%s", "http://www.powerhitz.com/ph.pls");
format(string, sizeof(string), "* %s changes the radio station.", GetPlayerNameEx(playerid), string);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
else if(GetPVarType(playerid, "pBoomBox"))
{
foreach(Player, i)
{
if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pBoomBoxArea")))
{
PlayAudioStreamForPlayerEx(i, "http://www.powerhitz.com/ph.pls", GetPVarFloat(playerid, "pBoomBoxX"), GetPVarFloat(playerid, "pBoomBoxY"), GetPVarFloat(playerid, "pBoomBoxZ"), 30.0, 1);
}
}
SetPVarString(playerid, "pBoomBoxStation", "http://www.powerhitz.com/ph.pls");
}
else
{
PlayAudioStreamForPlayerEx(playerid, "http://www.powerhitz.com/ph.pls");
SetPVarInt(playerid, "MusicIRadio", 1);
}
}