CAR AUDIO
#2

pawn Код:
if (strcmp("/autoraadio", cmdtext, true) == 0)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
                    new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
        GetPlayerPos(playerid, X, Y, Z);
    PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls", X, Y, Z, Distance, 1);
            return 1;
        }
        else
             SendClientMessage(playerid, 0xFFFFFFFFFFF, "You gotta be in a vehicle to use this command!");
    return 1;
    }
And btw this only works when ur standing still u got change the poss everytime u move... So use a timer
Reply


Messages In This Thread
CAR AUDIO - by romka - 16.01.2012, 14:30
Re: CAR AUDIO - by thimo - 16.01.2012, 14:45
Re: CAR AUDIO - by romka - 16.01.2012, 14:53
Re: CAR AUDIO - by thimo - 16.01.2012, 14:56
Re: CAR AUDIO - by romka - 16.01.2012, 15:01
Re: CAR AUDIO - by Sascha - 16.01.2012, 15:03
Re: CAR AUDIO - by romka - 16.01.2012, 15:12
Re: CAR AUDIO - by Sascha - 16.01.2012, 15:37
Re: CAR AUDIO - by romka - 16.01.2012, 15:41
Re: CAR AUDIO - by romka - 16.01.2012, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)