SA-MP Forums Archive
Radio Station Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Radio Station Problem (/showthread.php?tid=382499)



Radio Station Problem - Akcent_Voltaj - 03.10.2012

so im a taxi person..i have a radio station with songs..how can i make it so each time a client enters taxi music goes on automaticly..because i have dialog radio and i have to put music after they enter vehicle..get it?


Re: Radio Station Problem - Red_Dragon. - 03.10.2012

Use this maybe ? https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle


Re: Radio Station Problem - doreto - 03.10.2012

Here you just idea/start of that you are asking for

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) // Player entered a vehicle as passanger (he is already enter it)
    {
        new rand = random(souce); // change 'source' wich your music list array or other thing that you have wich will random select one of them
        PlayAudioStreamForPlayer(playerid,rand,.......);
    }
    return 1;
}



Re: Radio Station Problem - Akcent_Voltaj - 03.10.2012

so if do /musicon and i hear a radio station and i want so a customer enters car and listen to the music im listening..


Re: Radio Station Problem - doreto - 03.10.2012

Quote:
Originally Posted by Akcent_Voltaj
Посмотреть сообщение
so if do /musicon and i hear a radio station and i want so a customer enters car and listen to the music im listening..
I will suppose that you play your soungs wich url box (input box) just make global varible to store the soung you have selected/choise and when player enter it stream it for him