[pØmØc] RadiØ

Započeo [BM]Aleksa_Smiljanic, Avgust 05, 2012, 14:19:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: tehlan xpeira Edit
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[256];
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):




vlado_plavsic

Citat: [BM]Aleksa_Smiljanic poslato Avgust 06, 2012, 14:20:07 POSLE PODNE
Refresh [tema pala na dno]

I da je pala u tri lepe ne smes da postas u jednoj temi zaredom vise od 2 puta.Lock