Вот паблик:
public OnPlayerStateChange(playerid, newstate, oldstate) { new carid = GetPlayerVehicleID(playerid); if(newstate == PLAYER_STATE_DRIVER) { if(EngineState[carid] == false) SendClientMessage(playerid, color_main, "Чтобы завести двигатель нажмите 'CTRL'"); SendClientMessage(playerid, color_main, "Чтобы пристегнуть ремень безопасности нажмите '2'"); SendClientMessage(playerid, color_main, "Чтобы включить фары нажмите 'ALT'"); } if(carid == PoliceV[0] || carid == PoliceV[1] || carid == PoliceV[2] || carid == PoliceV[3] || carid == PoliceV[4] || carid == PoliceV[5] || carid == PoliceV[6] || carid == PoliceV[7] || carid == PoliceV[8] || carid == PoliceV[9] || PoliceV[10]) { if(player_info[playerid][u_member] != 1) { SendClientMessage(playerid, color_yellow, "Вы не состоите в МВД!"); // Вот что пишет RemovePlayerFromVehicle(playerid); } if(GetPVarInt(playerid,"DJob") == 0 && player_info[playerid][u_member] == 1) { SCM(playerid, color_yellow, "Вы в гражданской одежде!"); RemovePlayerFromVehicle(playerid); } } return 1; }
