if(newstate == 2)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == Cars[Taxi1] || CarCheck == Cars[Taxi2] || CarCheck == Cars[Taxi3] || CarCheck == Cars[Taxi4] || CarCheck == Cars[Taxi5] || CarCheck == Cars[Taxi6] || CarCheck == Cars[Taxi7] || CarCheck == Cars[Taxi8] || CarCheck == Cars[Taxi8] || CarCheck == Cars[Taxi9] || CarCheck == Cars[Taxi10] || CarCheck == Cars[Taxi11] || CarCheck == Cars[Taxi12] || CarCheck == Cars[Taxi13] || CarCheck == Cars[Taxi14] || CarCheck == Cars[Taxi15] || CarCheck == Cars[Taxi16] || CarCheck == Cars[Taxi17] )
{
if(PlayerInfo[playerid][pJob] != JOB_TAXIDRIVER)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the Taxi Drivers.");
return 1;
}
}
new CarCheck2 = GetPlayerVehicleID(playerid);
if(CarCheck2 == Cars2[Mech1] || CarCheck2 == Cars2[Mech2] || CarCheck2 == Cars2[Mech3] || CarCheck2 == Cars2[Mech4] || CarCheck2 == Cars2[Mech5] )
{
if(PlayerInfo[playerid][pJob] != JOB_MECHANIC)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the Mechanics.");
return 1;
}
}
}
new Floatos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); SetPlayerPos(playerid, pos[0], pos[1], pos[2]); |