find other players in car
#1

hi everybody

today i tried out to figure my own taxi system. well it was just somt minutes ago however, now i want to find the driver via if. and i dont know how. i just thought of GetPlayerVehicleSeat, but that did not work. ill show you my code.
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
new timer2;
{
	if (GetVehicleModel(vehicleid) == 420){
		SendClientMessage(playerid,COLOR_GREEN,"Willkommen im Taxi");
 	}
 	if (GetPlayerVehicleSeat(playerid) == 2 & 3 & 4){
  timer2 = SetTimer("taxi2", 30000, true);
  }
	return 1;
}
public taxi2
{
//here i want to find the driver and give him 300 dollars from the passengers
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	KillTimer(timer2);
	return 1;
}
if you could help me i would be very thankful.

greetz m2d
Reply


Messages In This Thread
find other players in car - by master2die - 24.05.2010, 20:54
Re: find other players in car - by juice.j - 24.05.2010, 22:50
Re: find other players in car - by Babul - 24.05.2010, 23:04
Re: find other players in car - by master2die - 24.05.2010, 23:29
Re: find other players in car - by Nero_3D - 25.05.2010, 02:14
Re: find other players in car - by master2die - 28.05.2010, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)