Quote:
Originally Posted by BenzoAMG
pawn Код:
if(newstate == PLAYER_STATE_DRIVER) { if(BusCar(GetPlayerVehicleID(playerid))) // This works { if(PlayerInfo[playerid][pJob] == 1) { SendClientMessage(playerid,-1,"{1589FF} Welcome Bus Driver."); } else { SendClientMessage(playerid,COLOR_GREY,"This vehicle is LOCKED!"); RemovePlayerFromVehicle(playerid); } } if(MechanicCar(GetPlayerVehicleID(playerid))) // All the code under this don't work whatever I put under here { if(PlayerInfo[playerid][pJob] == 2) { SendClientMessage(playerid,-1,"{1589FF} Welcome Mechanic."); } else { SendClientMessage(playerid,COLOR_GREY,"This vehicle is LOCKED!"); RemovePlayerFromVehicle(playerid); } } }
|
It's still the same, I don't know what's wrong with this but it's weird.