13.03.2012, 17:27
Whats the problem here, cus when you are not a taxi driver you can still drive it whats the problem in this code?
pawn Код:
else if(newstate == PLAYER_STATE_DRIVER)
{
if(IsATaxiCar(GetPlayerVehicleID(playerid))==420) //if Vehicle model that player enter is taxi
{
if( PlayerInfo[ playerid ][ pJob ] != 2 ) //if Player job is not "2" or "taxi driver (maybe)"
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this car.");
}
}
}