25.07.2013, 19:24
Try this
You've forgot to add the return's to a few sections and tell me if it works!
Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(BusCar(GetPlayerVehicleID(playerid))) // This works { if(PlayerInfo[playerid][pJob] == 1) { SendClientMessage(playerid,-1,"{1589FF} Welcome Bus Driver."); } else return 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 return SendClientMessage(playerid,COLOR_GREY,"This vehicle is LOCKED!"); RemovePlayerFromVehicle(playerid); } }