Car Chat <-- Quick Question!
#3

okay cam up with this, Is this the best way?

Код:
			
new vehicleid = GetPlayerVehicleID(playerid);
new passengervehid;
if(listitem == 0) // Rap
{
	PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=8318"); // driver
	  for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
	    		if (!IsPlayerInAnyVehicle(i)) return 1;
                        passengervehid = GetPlayerVehicleID(i);
                        if(passengervehid = vehicleid)
                        {
			       PlayAudioStreamForPlayer(i,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=8318"); // Passenger
			       SendClientMessage(playerid,GREEN,"Someone has turned on the radio.");
			       return 1;
		        }
		}
       }
    		}//
Reply


Messages In This Thread
Car Chat <-- Quick Question! - by hewittpro - 17.11.2013, 00:48
Re: Car Chat <-- Quick Question! - by ***Niko*** - 17.11.2013, 00:54
Re: Car Chat <-- Quick Question! - by hewittpro - 17.11.2013, 01:08

Forum Jump:


Users browsing this thread: 2 Guest(s)