#1

i have script to switchnewsound in the car

PHP код:
forward SwitchNewSound();
public 
SwitchNewSound()
{
 for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerInAnyVehicle(i))
        {
            
StopAudioStreamForPlayer(i);
            
PlayAudioStreamForPlayer(iRandomSongs[random(sizeof(RandomSongs))]);
            
URLNumber++;
            if(
URLNumber == sizeof(RandomSongs)) URLNumber 0;
        }
    }
    return 
1;

but how to stop when out of car any idea
Reply


Messages In This Thread
song - by asri - 25.05.2017, 03:38
Re: song - by CheezIt - 25.05.2017, 04:30
Re: song - by Aldrago - 25.05.2017, 04:34
Re: song - by Farzam - 25.05.2017, 05:05
Re: song - by asri - 25.05.2017, 06:06

Forum Jump:


Users browsing this thread: 1 Guest(s)