24.05.2010, 20:54
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.
if you could help me i would be very thankful.
greetz m2d
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; }
greetz m2d