Detaljan opis problema: Zelim da kad igrac udje u auto da mu pusti muziku npr sa linka "http://streaming.tdiradio.com:9000" Takodje zelim da onemoguci defoult radio system iz gra sp
Dio skripte: Nesto slicno naso sam na Balkan Extazy modu
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new string;
new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
new vehicle = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER && (pveh != 509 && pveh != 481 && pveh != 510) && IsPlayerInAnyVehicle(playerid) && !IsAPlane(vehicle) && !IsAHarvest(vehicle))
{
PlayAudioStreamForPlayer(playerid, "http://streaming.tdiradio.com:9000");
SetTimerEx("Startup", 1, false, "ii", playerid, vehicle);
SetTimerEx("engine2", 2500, false, "ii", playerid);
}
else if(newstate == PLAYER_STATE_DRIVER && (pveh != 509 && pveh != 481 && pveh != 510) && IsPlayerInAnyVehicle(playerid) && !IsAPlane(vehicle) && !IsAHarvest(vehicle))
{
PlayAudioStreamForPlayer(playerid, "http://streaming.tdiradio.com:9000");
SetTimerEx("Startup", 1, false, "ii", playerid, vehicle);
SetTimerEx("engine2", 2500, false, "ii", playerid);
}
if(newstate == PLAYER_STATE_ONFOOT)
{
StopAudioStreamForPlayer(playerid);Neke slike/video za lakse dobivanje pomoci(neobavezno):
