14.01.2013, 20:22
pawn Код:
case ClassTaxiDriver:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid trucking vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleTaxi, VehicleCabbie: // Flatbed, DFT-30, CementTruck
TaxiDriver_StartRandomJob(playerid); // Start a random job
default: SendClientMessage(playerid, 0xFF0000FF, "You need to be the driver of a trucking vehicle to start a job");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "You need to be the driver of a trucking vehicle to start a job");
}
Also:
Quote:
+1 Rep To Me If I Helped You! |