Radio Station Problem
#1

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?
Reply
#2

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

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;
}
Reply
#4

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..
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)