09.03.2012, 21:17
I would use:
pawn Код:
new newcar = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
if(IsATaxicar(newcar))
{
if(PlayerInfo[playerid][pJob] == 2) {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this car.");
return 1;
}
}
// .. .. other code
}
// other checks