12.06.2014, 16:44
Hey guys,
I've fought and fought trying to get clickable textdraws to work. They don't whatsoever, they act like they are unclickable, they don't change color when being hovered over or anything... I have toggled them all selectable:
All the textdraws show on the command /newmdc, and it switches to the mouse to permit me to click one, but none of them are clickable:
I've fought with this for about 48 hours in total. Whomever can help me out I will admire and give reputation to because this is impossible for me to figure out what is going on...
I've fought and fought trying to get clickable textdraws to work. They don't whatsoever, they act like they are unclickable, they don't change color when being hovered over or anything... I have toggled them all selectable:
pawn Код:
MDC_MAIN_BACKGROUND = TextDrawCreate(617.000000, 107.000000, " ");
TextDrawBackgroundColor(MDC_MAIN_BACKGROUND , 255);
TextDrawFont(MDC_MAIN_BACKGROUND , 1);
TextDrawLetterSize(MDC_MAIN_BACKGROUND , 0.500000, 1.000000);
TextDrawColor(MDC_MAIN_BACKGROUND , -1);
TextDrawSetOutline(MDC_MAIN_BACKGROUND , 0);
TextDrawSetProportional(MDC_MAIN_BACKGROUND , 1);
TextDrawSetShadow(MDC_MAIN_BACKGROUND , 1);
TextDrawUseBox(MDC_MAIN_BACKGROUND , 1);
TextDrawBoxColor(MDC_MAIN_BACKGROUND , 125);
TextDrawTextSize(MDC_MAIN_BACKGROUND , 18.000000, 9.000000);
MDC_TITLE_BAR = TextDrawCreate(26.000000, 108.000000, "Bone County Sheriff's Office - MDC");
TextDrawBackgroundColor(MDC_TITLE_BAR , 255);
TextDrawFont(MDC_TITLE_BAR , 2);
TextDrawLetterSize(MDC_TITLE_BAR , 0.220000, 0.799999);
TextDrawColor(MDC_TITLE_BAR , -1);
TextDrawSetOutline(MDC_TITLE_BAR , 0);
TextDrawSetProportional(MDC_TITLE_BAR , 1);
TextDrawSetShadow(MDC_TITLE_BAR , 1);
MDC_TITLE_BAR_BACKGROUND = TextDrawCreate(617.000000, 107.000000, " ");
TextDrawBackgroundColor(MDC_TITLE_BAR_BACKGROUND , 255);
TextDrawFont(MDC_TITLE_BAR_BACKGROUND , 1);
TextDrawLetterSize(MDC_TITLE_BAR_BACKGROUND , 0.500000, 1.000000);
TextDrawColor(MDC_TITLE_BAR_BACKGROUND , -1);
TextDrawSetOutline(MDC_TITLE_BAR_BACKGROUND , 0);
TextDrawSetProportional(MDC_TITLE_BAR_BACKGROUND , 1);
TextDrawSetShadow(MDC_TITLE_BAR_BACKGROUND , 1);
TextDrawUseBox(MDC_TITLE_BAR_BACKGROUND , 1);
TextDrawBoxColor(MDC_TITLE_BAR_BACKGROUND , 125);
TextDrawTextSize(MDC_TITLE_BAR_BACKGROUND , 18.000000, -34.000000);
MDC_TITLE_BAR_X_BACKGROUND = TextDrawCreate(617.000000, 107.000000, " ");
TextDrawBackgroundColor(MDC_TITLE_BAR_X_BACKGROUND , 255);
TextDrawFont(MDC_TITLE_BAR_X_BACKGROUND , 1);
TextDrawLetterSize(MDC_TITLE_BAR_X_BACKGROUND , 0.500000, 1.000000);
TextDrawColor(MDC_TITLE_BAR_X_BACKGROUND , -1);
TextDrawSetOutline(MDC_TITLE_BAR_X_BACKGROUND , 0);
TextDrawSetProportional(MDC_TITLE_BAR_X_BACKGROUND , 1);
TextDrawSetShadow(MDC_TITLE_BAR_X_BACKGROUND , 1);
TextDrawUseBox(MDC_TITLE_BAR_X_BACKGROUND , 1);
TextDrawBoxColor(MDC_TITLE_BAR_X_BACKGROUND , -16776961);
TextDrawTextSize(MDC_TITLE_BAR_X_BACKGROUND , 601.000000, -3.000000);
MDC_WELCOME_MESSAGE = TextDrawCreate(27.000000, 123.000000, "Welcome %s %s,");
TextDrawBackgroundColor(MDC_WELCOME_MESSAGE , 255);
TextDrawFont(MDC_WELCOME_MESSAGE , 2);
TextDrawLetterSize(MDC_WELCOME_MESSAGE , 0.250000, 0.899999);
TextDrawColor(MDC_WELCOME_MESSAGE , 16777215);
TextDrawSetOutline(MDC_WELCOME_MESSAGE , 0);
TextDrawSetProportional(MDC_WELCOME_MESSAGE , 1);
TextDrawSetShadow(MDC_WELCOME_MESSAGE , 1);
MDC_TITLE_BAR_X = TextDrawCreate(604.000000, 104.000000, "X");
TextDrawBackgroundColor(MDC_TITLE_BAR_X , 255);
TextDrawFont(MDC_TITLE_BAR_X , 2);
TextDrawTextSize(MDC_TITLE_BAR_X, 8, 20);
TextDrawLetterSize(MDC_TITLE_BAR_X , 0.360000, 1.399999);
TextDrawColor(MDC_TITLE_BAR_X , -1);
TextDrawSetOutline(MDC_TITLE_BAR_X , 0);
TextDrawSetShadow(MDC_TITLE_BAR_X , 1);
TextDrawSetSelectable(MDC_TITLE_BAR_X , 1);
MDC_BUTTON_TAKE_BREAK = TextDrawCreate(577.000000, 201.000000, "Take Break");
TextDrawAlignment(MDC_BUTTON_TAKE_BREAK , 2);
TextDrawBackgroundColor(MDC_BUTTON_TAKE_BREAK , 255);
TextDrawFont(MDC_BUTTON_TAKE_BREAK , 2);
TextDrawLetterSize(MDC_BUTTON_TAKE_BREAK , 0.260000, 1.300000);
TextDrawColor(MDC_BUTTON_TAKE_BREAK , -1);
TextDrawSetOutline(MDC_BUTTON_TAKE_BREAK , 0);
TextDrawSetProportional(MDC_BUTTON_TAKE_BREAK , 1);
TextDrawSetShadow(MDC_BUTTON_TAKE_BREAK , 1);
TextDrawUseBox(MDC_BUTTON_TAKE_BREAK , 1);
TextDrawBoxColor(MDC_BUTTON_TAKE_BREAK , -65281);
TextDrawTextSize(MDC_BUTTON_TAKE_BREAK , 90.000000, -80.000000);
TextDrawSetSelectable(MDC_BUTTON_TAKE_BREAK , 1);
MDC_BUTTON_REQUEST_SUPERVISOR = TextDrawCreate(577.000000, 174.000000, "Request Supervisor");
TextDrawAlignment(MDC_BUTTON_REQUEST_SUPERVISOR , 2);
TextDrawBackgroundColor(MDC_BUTTON_REQUEST_SUPERVISOR , 255);
TextDrawFont(MDC_BUTTON_REQUEST_SUPERVISOR , 2);
TextDrawLetterSize(MDC_BUTTON_REQUEST_SUPERVISOR , 0.260000, 1.300000);
TextDrawColor(MDC_BUTTON_REQUEST_SUPERVISOR , -1);
TextDrawSetOutline(MDC_BUTTON_REQUEST_SUPERVISOR , 0);
TextDrawSetProportional(MDC_BUTTON_REQUEST_SUPERVISOR , 1);
TextDrawSetShadow(MDC_BUTTON_REQUEST_SUPERVISOR , 1);
TextDrawUseBox(MDC_BUTTON_REQUEST_SUPERVISOR , 1);
TextDrawBoxColor(MDC_BUTTON_REQUEST_SUPERVISOR , 16777215);
TextDrawTextSize(MDC_BUTTON_REQUEST_SUPERVISOR , 90.000000, -80.000000);
MDC_UNKOWN_BACKGROUND = TextDrawCreate(617.000000, 308.000000, " ");
TextDrawBackgroundColor(MDC_UNKOWN_BACKGROUND , 255);
TextDrawFont(MDC_UNKOWN_BACKGROUND , 1);
TextDrawLetterSize(MDC_UNKOWN_BACKGROUND , 0.529999, 2.300000);
TextDrawColor(MDC_UNKOWN_BACKGROUND , -1);
TextDrawSetOutline(MDC_UNKOWN_BACKGROUND , 0);
TextDrawSetProportional(MDC_UNKOWN_BACKGROUND , 1);
TextDrawSetShadow(MDC_UNKOWN_BACKGROUND , 1);
TextDrawUseBox(MDC_UNKOWN_BACKGROUND , 1);
TextDrawBoxColor(MDC_UNKOWN_BACKGROUND , 125);
TextDrawTextSize(MDC_UNKOWN_BACKGROUND , 18.000000, 138.000000);
MDC_BUTTON_ACTIVE_SUPERVISORS = TextDrawCreate(577.000000, 120.000000, "Active Supervisors");
TextDrawAlignment(MDC_BUTTON_ACTIVE_SUPERVISORS , 2);
TextDrawBackgroundColor(MDC_BUTTON_ACTIVE_SUPERVISORS , 255);
TextDrawFont(MDC_BUTTON_ACTIVE_SUPERVISORS , 2);
TextDrawLetterSize(MDC_BUTTON_ACTIVE_SUPERVISORS , 0.260000, 1.300000);
TextDrawColor(MDC_BUTTON_ACTIVE_SUPERVISORS , -1);
TextDrawSetOutline(MDC_BUTTON_ACTIVE_SUPERVISORS , 0);
TextDrawSetProportional(MDC_BUTTON_ACTIVE_SUPERVISORS , 1);
TextDrawSetShadow(MDC_BUTTON_ACTIVE_SUPERVISORS , 1);
TextDrawUseBox(MDC_BUTTON_ACTIVE_SUPERVISORS , 1);
TextDrawBoxColor(MDC_BUTTON_ACTIVE_SUPERVISORS , 65535);
TextDrawTextSize(MDC_BUTTON_ACTIVE_SUPERVISORS , 90.000000, -81.000000);
TextDrawSetSelectable(MDC_BUTTON_ACTIVE_SUPERVISORS, 1);
MDC_BUTTON_ACTIVE_DEPUTIES = TextDrawCreate(577.000000, 147.000000, "Active Deputies");
TextDrawAlignment(MDC_BUTTON_ACTIVE_DEPUTIES , 2);
TextDrawBackgroundColor(MDC_BUTTON_ACTIVE_DEPUTIES , 255);
TextDrawFont(MDC_BUTTON_ACTIVE_DEPUTIES , 2);
TextDrawLetterSize(MDC_BUTTON_ACTIVE_DEPUTIES , 0.260000, 1.300000);
TextDrawColor(MDC_BUTTON_ACTIVE_DEPUTIES , -1);
TextDrawSetOutline(MDC_BUTTON_ACTIVE_DEPUTIES , 0);
TextDrawSetProportional(MDC_BUTTON_ACTIVE_DEPUTIES , 1);
TextDrawSetShadow(MDC_BUTTON_ACTIVE_DEPUTIES , 1);
TextDrawUseBox(MDC_BUTTON_ACTIVE_DEPUTIES , 1);
TextDrawBoxColor(MDC_BUTTON_ACTIVE_DEPUTIES , -16711681);
TextDrawTextSize(MDC_BUTTON_ACTIVE_DEPUTIES , 90.000000, -80.000000);
TextDrawSetSelectable(MDC_BUTTON_ACTIVE_DEPUTIES , 1);
MDC_BUTTON_CLOCK_IN = TextDrawCreate(577.000000, 228.000000, "Clock In");
TextDrawAlignment(MDC_BUTTON_CLOCK_IN , 2);
TextDrawBackgroundColor(MDC_BUTTON_CLOCK_IN , 255);
TextDrawFont(MDC_BUTTON_CLOCK_IN , 2);
TextDrawLetterSize(MDC_BUTTON_CLOCK_IN , 0.260000, 1.300000);
TextDrawColor(MDC_BUTTON_CLOCK_IN , -1);
TextDrawSetOutline(MDC_BUTTON_CLOCK_IN , 0);
TextDrawSetProportional(MDC_BUTTON_CLOCK_IN , 1);
TextDrawSetShadow(MDC_BUTTON_CLOCK_IN , 1);
TextDrawUseBox(MDC_BUTTON_CLOCK_IN , 1);
TextDrawBoxColor(MDC_BUTTON_CLOCK_IN , 16711935);
TextDrawTextSize(MDC_BUTTON_CLOCK_IN , 90.000000, -80.000000);
TextDrawSetSelectable(MDC_BUTTON_CLOCK_IN , 1);
MDC_BUTTON_CLOCK_OUT = TextDrawCreate(577.000000, 255.000000, "Clock Out");
TextDrawAlignment(MDC_BUTTON_CLOCK_OUT , 2);
TextDrawBackgroundColor(MDC_BUTTON_CLOCK_OUT , 255);
TextDrawFont(MDC_BUTTON_CLOCK_OUT , 2);
TextDrawLetterSize(MDC_BUTTON_CLOCK_OUT , 0.260000, 1.300000);
TextDrawColor(MDC_BUTTON_CLOCK_OUT , -1);
TextDrawSetOutline(MDC_BUTTON_CLOCK_OUT , 0);
TextDrawSetProportional(MDC_BUTTON_CLOCK_OUT , 1);
TextDrawSetShadow(MDC_BUTTON_CLOCK_OUT , 1);
TextDrawUseBox(MDC_BUTTON_CLOCK_OUT , 1);
TextDrawBoxColor(MDC_BUTTON_CLOCK_OUT , -16776961);
TextDrawTextSize(MDC_BUTTON_CLOCK_OUT , 90.000000, -80.000000);
TextDrawSetSelectable(MDC_BUTTON_CLOCK_OUT , 1);
MDC_BUTTON_EMPLOYEE_PROFILE = TextDrawCreate(577.000000, 281.000000, "Employee Profile");
TextDrawAlignment(MDC_BUTTON_EMPLOYEE_PROFILE , 2);
TextDrawBackgroundColor(MDC_BUTTON_EMPLOYEE_PROFILE , 255);
TextDrawFont(MDC_BUTTON_EMPLOYEE_PROFILE , 2);
TextDrawLetterSize(MDC_BUTTON_EMPLOYEE_PROFILE , 0.260000, 1.300000);
TextDrawColor(MDC_BUTTON_EMPLOYEE_PROFILE , -1);
TextDrawSetOutline(MDC_BUTTON_EMPLOYEE_PROFILE , 0);
TextDrawSetProportional(MDC_BUTTON_EMPLOYEE_PROFILE , 1);
TextDrawSetShadow(MDC_BUTTON_EMPLOYEE_PROFILE , 1);
TextDrawUseBox(MDC_BUTTON_EMPLOYEE_PROFILE , 1);
TextDrawBoxColor(MDC_BUTTON_EMPLOYEE_PROFILE , 474060543);
TextDrawTextSize(MDC_BUTTON_EMPLOYEE_PROFILE , 90.000000, -80.000000);
TextDrawSetSelectable(MDC_BUTTON_EMPLOYEE_PROFILE , 1);
MDC_BUTTON_CITIZEN_DATABASE = TextDrawCreate(48.000000, 308.000000, "Citizen Database");
TextDrawAlignment(MDC_BUTTON_CITIZEN_DATABASE , 2);
TextDrawBackgroundColor(MDC_BUTTON_CITIZEN_DATABASE , 255);
TextDrawFont(MDC_BUTTON_CITIZEN_DATABASE , 2);
TextDrawLetterSize(MDC_BUTTON_CITIZEN_DATABASE , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_CITIZEN_DATABASE , -1);
TextDrawSetOutline(MDC_BUTTON_CITIZEN_DATABASE , 0);
TextDrawSetProportional(MDC_BUTTON_CITIZEN_DATABASE , 1);
TextDrawSetShadow(MDC_BUTTON_CITIZEN_DATABASE , 1);
TextDrawUseBox(MDC_BUTTON_CITIZEN_DATABASE , 1);
TextDrawBoxColor(MDC_BUTTON_CITIZEN_DATABASE , 65535);
TextDrawTextSize(MDC_BUTTON_CITIZEN_DATABASE , 89.000000, -59.000000);
TextDrawSetSelectable(MDC_BUTTON_CITIZEN_DATABASE , 1);
MDC_BUTTON_VEHICLE_DATABASE = TextDrawCreate(104.000000, 308.000000, "Vehicle Database");
TextDrawAlignment(MDC_BUTTON_VEHICLE_DATABASE , 2);
TextDrawBackgroundColor(MDC_BUTTON_VEHICLE_DATABASE , 255);
TextDrawFont(MDC_BUTTON_VEHICLE_DATABASE , 2);
TextDrawLetterSize(MDC_BUTTON_VEHICLE_DATABASE , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_VEHICLE_DATABASE , -1);
TextDrawSetOutline(MDC_BUTTON_VEHICLE_DATABASE , 0);
TextDrawSetProportional(MDC_BUTTON_VEHICLE_DATABASE , 1);
TextDrawSetShadow(MDC_BUTTON_VEHICLE_DATABASE , 1);
TextDrawUseBox(MDC_BUTTON_VEHICLE_DATABASE , 1);
TextDrawBoxColor(MDC_BUTTON_VEHICLE_DATABASE , 16711935);
TextDrawTextSize(MDC_BUTTON_VEHICLE_DATABASE , 90.000000, -60.000000);
TextDrawSetSelectable(MDC_BUTTON_VEHICLE_DATABASE , 1);
MDC_BUTTON_PLACE_BOLO = TextDrawCreate(160.000000, 308.000000, "Place B.O.L.O");
TextDrawAlignment(MDC_BUTTON_PLACE_BOLO , 2);
TextDrawBackgroundColor(MDC_BUTTON_PLACE_BOLO , 255);
TextDrawFont(MDC_BUTTON_PLACE_BOLO , 2);
TextDrawLetterSize(MDC_BUTTON_PLACE_BOLO , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_PLACE_BOLO , -1);
TextDrawSetOutline(MDC_BUTTON_PLACE_BOLO , 0);
TextDrawSetProportional(MDC_BUTTON_PLACE_BOLO , 1);
TextDrawSetShadow(MDC_BUTTON_PLACE_BOLO , 1);
TextDrawUseBox(MDC_BUTTON_PLACE_BOLO , 1);
TextDrawBoxColor(MDC_BUTTON_PLACE_BOLO , -65281);
TextDrawTextSize(MDC_BUTTON_PLACE_BOLO , 90.000000, -60.000000);
TextDrawSetSelectable(MDC_BUTTON_PLACE_BOLO , 1);
MDC_BUTTON_REQUEST_BACKUP = TextDrawCreate(216.000000, 308.000000, "Request Backup");
TextDrawAlignment(MDC_BUTTON_REQUEST_BACKUP , 2);
TextDrawBackgroundColor(MDC_BUTTON_REQUEST_BACKUP , 255);
TextDrawFont(MDC_BUTTON_REQUEST_BACKUP , 2);
TextDrawLetterSize(MDC_BUTTON_REQUEST_BACKUP , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_REQUEST_BACKUP , -1);
TextDrawSetOutline(MDC_BUTTON_REQUEST_BACKUP , 0);
TextDrawSetProportional(MDC_BUTTON_REQUEST_BACKUP , 1);
TextDrawSetShadow(MDC_BUTTON_REQUEST_BACKUP , 1);
TextDrawUseBox(MDC_BUTTON_REQUEST_BACKUP , 1);
TextDrawBoxColor(MDC_BUTTON_REQUEST_BACKUP , -16776961);
TextDrawTextSize(MDC_BUTTON_REQUEST_BACKUP , 90.000000, -60.000000);
TextDrawSetSelectable(MDC_BUTTON_REQUEST_BACKUP , 1);
MDC_BUTTON_CANCEL_BACKUP = TextDrawCreate(272.000000, 308.000000, "Cancel Backup");
TextDrawAlignment(MDC_BUTTON_CANCEL_BACKUP , 2);
TextDrawBackgroundColor(MDC_BUTTON_CANCEL_BACKUP , 255);
TextDrawFont(MDC_BUTTON_CANCEL_BACKUP , 2);
TextDrawLetterSize(MDC_BUTTON_CANCEL_BACKUP , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_CANCEL_BACKUP , -1);
TextDrawSetOutline(MDC_BUTTON_CANCEL_BACKUP , 0);
TextDrawSetProportional(MDC_BUTTON_CANCEL_BACKUP , 1);
TextDrawSetShadow(MDC_BUTTON_CANCEL_BACKUP , 1);
TextDrawUseBox(MDC_BUTTON_CANCEL_BACKUP , 1);
TextDrawBoxColor(MDC_BUTTON_CANCEL_BACKUP , -16711681);
TextDrawTextSize(MDC_BUTTON_CANCEL_BACKUP , 90.000000, -60.000000);
TextDrawSetSelectable(MDC_BUTTON_CANCEL_BACKUP , 1);
MDC_BUTTON_ISSUE_CITATION = TextDrawCreate(328.000000, 308.000000, "Issue Citation");
TextDrawAlignment(MDC_BUTTON_ISSUE_CITATION , 2);
TextDrawBackgroundColor(MDC_BUTTON_ISSUE_CITATION , 255);
TextDrawFont(MDC_BUTTON_ISSUE_CITATION , 2);
TextDrawLetterSize(MDC_BUTTON_ISSUE_CITATION , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_ISSUE_CITATION , -1);
TextDrawSetOutline(MDC_BUTTON_ISSUE_CITATION , 0);
TextDrawSetProportional(MDC_BUTTON_ISSUE_CITATION , 1);
TextDrawSetShadow(MDC_BUTTON_ISSUE_CITATION , 1);
TextDrawUseBox(MDC_BUTTON_ISSUE_CITATION , 1);
TextDrawBoxColor(MDC_BUTTON_ISSUE_CITATION , 16777215);
TextDrawTextSize(MDC_BUTTON_ISSUE_CITATION , 90.000000, -60.000000);
TextDrawSetSelectable(MDC_BUTTON_ISSUE_CITATION , 1);
MDC_BUTTON_REVOKE_LICENSE = TextDrawCreate(384.000000, 308.000000, "Revoke License");
TextDrawAlignment(MDC_BUTTON_REVOKE_LICENSE , 2);
TextDrawBackgroundColor(MDC_BUTTON_REVOKE_LICENSE , 255);
TextDrawFont(MDC_BUTTON_REVOKE_LICENSE , 2);
TextDrawLetterSize(MDC_BUTTON_REVOKE_LICENSE , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_REVOKE_LICENSE , -1);
TextDrawSetOutline(MDC_BUTTON_REVOKE_LICENSE , 0);
TextDrawSetProportional(MDC_BUTTON_REVOKE_LICENSE , 1);
TextDrawSetShadow(MDC_BUTTON_REVOKE_LICENSE , 1);
TextDrawUseBox(MDC_BUTTON_REVOKE_LICENSE , 1);
TextDrawBoxColor(MDC_BUTTON_REVOKE_LICENSE , 255);
TextDrawTextSize(MDC_BUTTON_REVOKE_LICENSE , 90.000000, -60.000000);
TextDrawSetSelectable(MDC_BUTTON_REVOKE_LICENSE , 1);
MDC_BUTTON_REQUEST_TOW_UNIT = TextDrawCreate(440.000000, 308.000000, "Request Tow-Unit");
TextDrawAlignment(MDC_BUTTON_REQUEST_TOW_UNIT , 2);
TextDrawBackgroundColor(MDC_BUTTON_REQUEST_TOW_UNIT , 255);
TextDrawFont(MDC_BUTTON_REQUEST_TOW_UNIT , 2);
TextDrawLetterSize(MDC_BUTTON_REQUEST_TOW_UNIT , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_REQUEST_TOW_UNIT , -1);
TextDrawSetOutline(MDC_BUTTON_REQUEST_TOW_UNIT , 0);
TextDrawSetProportional(MDC_BUTTON_REQUEST_TOW_UNIT , 1);
TextDrawSetShadow(MDC_BUTTON_REQUEST_TOW_UNIT , 1);
TextDrawUseBox(MDC_BUTTON_REQUEST_TOW_UNIT , 1);
TextDrawBoxColor(MDC_BUTTON_REQUEST_TOW_UNIT , 306189055);
TextDrawTextSize(MDC_BUTTON_REQUEST_TOW_UNIT , 90.000000, -60.000000);
TextDrawSetSelectable(MDC_BUTTON_REQUEST_TOW_UNIT , 1);
MDC_BUTTON_REQUEST_DELTA_UNIT = TextDrawCreate(496.000000, 308.000000, "Request Delta-Unit");
TextDrawAlignment(MDC_BUTTON_REQUEST_DELTA_UNIT , 2);
TextDrawBackgroundColor(MDC_BUTTON_REQUEST_DELTA_UNIT , 255);
TextDrawFont(MDC_BUTTON_REQUEST_DELTA_UNIT , 2);
TextDrawLetterSize(MDC_BUTTON_REQUEST_DELTA_UNIT , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_REQUEST_DELTA_UNIT , -1);
TextDrawSetOutline(MDC_BUTTON_REQUEST_DELTA_UNIT , 0);
TextDrawSetProportional(MDC_BUTTON_REQUEST_DELTA_UNIT , 1);
TextDrawSetShadow(MDC_BUTTON_REQUEST_DELTA_UNIT , 1);
TextDrawUseBox(MDC_BUTTON_REQUEST_DELTA_UNIT , 1);
TextDrawBoxColor(MDC_BUTTON_REQUEST_DELTA_UNIT , 1276324607);
TextDrawTextSize(MDC_BUTTON_REQUEST_DELTA_UNIT , 90.000000, -60.000000);
TextDrawSetSelectable(MDC_BUTTON_REQUEST_DELTA_UNIT , 1);
MDC_BUTTON_REQUEST_SIERRA = TextDrawCreate(569.000000, 308.000000, "Request Sierra");
TextDrawAlignment(MDC_BUTTON_REQUEST_SIERRA , 2);
TextDrawBackgroundColor(MDC_BUTTON_REQUEST_SIERRA , 255);
TextDrawFont(MDC_BUTTON_REQUEST_SIERRA , 2);
TextDrawLetterSize(MDC_BUTTON_REQUEST_SIERRA , 0.170000, 2.299999);
TextDrawColor(MDC_BUTTON_REQUEST_SIERRA , -1);
TextDrawSetOutline(MDC_BUTTON_REQUEST_SIERRA , 0);
TextDrawSetProportional(MDC_BUTTON_REQUEST_SIERRA , 1);
TextDrawSetShadow(MDC_BUTTON_REQUEST_SIERRA , 1);
TextDrawUseBox(MDC_BUTTON_REQUEST_SIERRA , 1);
TextDrawBoxColor(MDC_BUTTON_REQUEST_SIERRA , 1449141247);
TextDrawTextSize(MDC_BUTTON_REQUEST_SIERRA , 92.000000, -95.000000);
TextDrawSetSelectable(MDC_BUTTON_REQUEST_SIERRA , 1);
MDC_INFORMATION = TextDrawCreate(27.000000, 136.000000, "Welcome to the Bone County Sheriff's Office's Mobile Data Computer (MDC). Here you will find all actions that you will need to");
TextDrawBackgroundColor(MDC_INFORMATION , 255);
TextDrawFont(MDC_INFORMATION , 2);
TextDrawLetterSize(MDC_INFORMATION , 0.170000, 1.000000);
TextDrawColor(MDC_INFORMATION , -1);
TextDrawSetOutline(MDC_INFORMATION , 0);
TextDrawSetProportional(MDC_INFORMATION , 1);
TextDrawSetShadow(MDC_INFORMATION , 1);
MDC_INFORMATION_2 = TextDrawCreate(27.000000, 146.000000, "use as a deputy within the department. Please familiarize yourself with this system as it is vital to the operations of the Bone");
TextDrawBackgroundColor(MDC_INFORMATION_2 , 255);
TextDrawFont(MDC_INFORMATION_2 , 2);
TextDrawLetterSize(MDC_INFORMATION_2 , 0.170000, 1.000000);
TextDrawColor(MDC_INFORMATION_2 , -1);
TextDrawSetOutline(MDC_INFORMATION_2 , 0);
TextDrawSetProportional(MDC_INFORMATION_2 , 1);
TextDrawSetShadow(MDC_INFORMATION_2 , 1);
MDC_INFORMATION_3 = TextDrawCreate(27.000000, 156.000000, "County Sheriff's Office's functionality. Below is any news there is for the department, you should check this approximately");
TextDrawBackgroundColor(MDC_INFORMATION_3 , 255);
TextDrawFont(MDC_INFORMATION_3 , 2);
TextDrawLetterSize(MDC_INFORMATION_3 , 0.170000, 1.000000);
TextDrawColor(MDC_INFORMATION_3 , -1);
TextDrawSetOutline(MDC_INFORMATION_3 , 0);
TextDrawSetProportional(MDC_INFORMATION_3 , 1);
TextDrawSetShadow(MDC_INFORMATION_3 , 1);
MDC_INFORMATION_4 = TextDrawCreate(27.000000, 166.000000, "every 6 hours if possible when you are on duty. News can be found below.");
TextDrawBackgroundColor(MDC_INFORMATION_4 , 255);
TextDrawFont(MDC_INFORMATION_4 , 2);
TextDrawLetterSize(MDC_INFORMATION_4 , 0.170000, 1.000000);
TextDrawColor(MDC_INFORMATION_4 , -1);
TextDrawSetOutline(MDC_INFORMATION_4 , 0);
TextDrawSetProportional(MDC_INFORMATION_4 , 1);
TextDrawSetShadow(MDC_INFORMATION_4 , 1);
MDC_DEPARTMENTAL_NOTIFICATIONS = TextDrawCreate(27.000000, 184.000000, "Departmental Notifications");
TextDrawBackgroundColor(MDC_DEPARTMENTAL_NOTIFICATIONS , 255);
TextDrawFont(MDC_DEPARTMENTAL_NOTIFICATIONS , 2);
TextDrawLetterSize(MDC_DEPARTMENTAL_NOTIFICATIONS , 0.250000, 0.899999);
TextDrawColor(MDC_DEPARTMENTAL_NOTIFICATIONS , 16777215);
TextDrawSetOutline(MDC_DEPARTMENTAL_NOTIFICATIONS , 0);
TextDrawSetProportional(MDC_DEPARTMENTAL_NOTIFICATIONS , 1);
TextDrawSetShadow(MDC_DEPARTMENTAL_NOTIFICATIONS , 1);
MDC_DEPARTMENT_NOTIFICATIONS_ = TextDrawCreate(27.000000, 197.000000, "%s");
TextDrawBackgroundColor(MDC_DEPARTMENT_NOTIFICATIONS_ , 255);
TextDrawFont(MDC_DEPARTMENT_NOTIFICATIONS_ , 2);
TextDrawLetterSize(MDC_DEPARTMENT_NOTIFICATIONS_ , 0.170000, 1.000000);
TextDrawColor(MDC_DEPARTMENT_NOTIFICATIONS_ , -1);
TextDrawSetOutline(MDC_DEPARTMENT_NOTIFICATIONS_ , 0);
TextDrawSetProportional(MDC_DEPARTMENT_NOTIFICATIONS_ , 1);
TextDrawSetShadow(MDC_DEPARTMENT_NOTIFICATIONS_ , 1);
MDC_BUTTON_ACTIVE_BOLOS = TextDrawCreate(132.000000, 263.000000, "Active B.O.L.Os");
TextDrawAlignment(MDC_BUTTON_ACTIVE_BOLOS , 2);
TextDrawBackgroundColor(MDC_BUTTON_ACTIVE_BOLOS , 255);
TextDrawFont(MDC_BUTTON_ACTIVE_BOLOS , 2);
TextDrawLetterSize(MDC_BUTTON_ACTIVE_BOLOS , 0.469999, 2.299999);
TextDrawColor(MDC_BUTTON_ACTIVE_BOLOS , -1);
TextDrawSetOutline(MDC_BUTTON_ACTIVE_BOLOS , 0);
TextDrawSetProportional(MDC_BUTTON_ACTIVE_BOLOS , 1);
TextDrawSetShadow(MDC_BUTTON_ACTIVE_BOLOS , 1);
TextDrawUseBox(MDC_BUTTON_ACTIVE_BOLOS , 1);
TextDrawBoxColor(MDC_BUTTON_ACTIVE_BOLOS , 1449141247);
TextDrawTextSize(MDC_BUTTON_ACTIVE_BOLOS , 92.000000, -227.000000);
TextDrawSetSelectable(MDC_BUTTON_ACTIVE_BOLOS , 1);
MDC_BUTTON_ACTIVE_ROBBERIES = TextDrawCreate(391.000000, 263.000000, "Active Robberies/Felonies");
TextDrawAlignment(MDC_BUTTON_ACTIVE_ROBBERIES , 2);
TextDrawBackgroundColor(MDC_BUTTON_ACTIVE_ROBBERIES , 255);
TextDrawFont(MDC_BUTTON_ACTIVE_ROBBERIES , 2);
TextDrawLetterSize(MDC_BUTTON_ACTIVE_ROBBERIES , 0.469999, 2.299999);
TextDrawColor(MDC_BUTTON_ACTIVE_ROBBERIES , -1);
TextDrawSetOutline(MDC_BUTTON_ACTIVE_ROBBERIES , 0);
TextDrawSetProportional(MDC_BUTTON_ACTIVE_ROBBERIES , 1);
TextDrawSetShadow(MDC_BUTTON_ACTIVE_ROBBERIES , 1);
TextDrawUseBox(MDC_BUTTON_ACTIVE_ROBBERIES , 1);
TextDrawBoxColor(MDC_BUTTON_ACTIVE_ROBBERIES , 778189567);
TextDrawTextSize(MDC_BUTTON_ACTIVE_ROBBERIES , 92.000000, -300.000000);
TextDrawSetSelectable(MDC_BUTTON_ACTIVE_ROBBERIES , 1);
pawn Код:
if(strcmp(cmd, "/newmdc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
new newsstring[128];
switch(PlayerInfo[playerid][pRank])
{
case 1: format(newsstring, sizeof(newsstring), "Welcome Deputy Generalist %s,", PlayerName(playerid));
case 2: format(newsstring, sizeof(newsstring), "Welcome Deputy Sheriff I %s,", PlayerName(playerid));
case 3: format(newsstring, sizeof(newsstring), "Welcome Deputy Sheriff II %s,", PlayerName(playerid));
case 4: format(newsstring, sizeof(newsstring), "Welcome Deputy Sheriff III %s,", PlayerName(playerid));
case 5: format(newsstring, sizeof(newsstring), "Welcome Sergeant %s,", PlayerName(playerid));
case 6: format(newsstring, sizeof(newsstring), "Welcome Lieutenant %s,", PlayerName(playerid));
case 7: format(newsstring, sizeof(newsstring), "Welcome Captain %s,", PlayerName(playerid));
case 8: format(newsstring, sizeof(newsstring), "Welcome Assistant Sheriff %s,", PlayerName(playerid));
case 9: format(newsstring, sizeof(newsstring), "Welcome Undersheriff %s,", PlayerName(playerid));
case 10: format(newsstring, sizeof(newsstring), "Welcome Sheriff %s,", PlayerName(playerid));
}
TextDrawSetString(MDC_WELCOME_MESSAGE, newsstring);
TextDrawShowForPlayer(playerid, MDC_MAIN_BACKGROUND);
TextDrawShowForPlayer(playerid, MDC_TITLE_BAR);
TextDrawShowForPlayer(playerid, MDC_TITLE_BAR_BACKGROUND);
TextDrawShowForPlayer(playerid, MDC_TITLE_BAR_X_BACKGROUND);
TextDrawShowForPlayer(playerid, MDC_WELCOME_MESSAGE);
TextDrawShowForPlayer(playerid, MDC_TITLE_BAR_X);
TextDrawShowForPlayer(playerid, MDC_BUTTON_TAKE_BREAK);
TextDrawShowForPlayer(playerid, MDC_BUTTON_REQUEST_SUPERVISOR);
TextDrawShowForPlayer(playerid, MDC_UNKOWN_BACKGROUND);
TextDrawShowForPlayer(playerid, MDC_BUTTON_ACTIVE_SUPERVISORS);
TextDrawShowForPlayer(playerid, MDC_BUTTON_ACTIVE_DEPUTIES);
TextDrawShowForPlayer(playerid, MDC_BUTTON_CLOCK_IN);
TextDrawShowForPlayer(playerid, MDC_BUTTON_CLOCK_OUT);
TextDrawShowForPlayer(playerid, MDC_BUTTON_EMPLOYEE_PROFILE);
TextDrawShowForPlayer(playerid, MDC_BUTTON_CITIZEN_DATABASE);
TextDrawShowForPlayer(playerid, MDC_BUTTON_VEHICLE_DATABASE);
TextDrawShowForPlayer(playerid, MDC_BUTTON_PLACE_BOLO);
TextDrawShowForPlayer(playerid, MDC_BUTTON_REQUEST_BACKUP);
TextDrawShowForPlayer(playerid, MDC_BUTTON_CANCEL_BACKUP);
TextDrawShowForPlayer(playerid, MDC_BUTTON_ISSUE_CITATION);
TextDrawShowForPlayer(playerid, MDC_BUTTON_REVOKE_LICENSE);
TextDrawShowForPlayer(playerid, MDC_BUTTON_REQUEST_TOW_UNIT);
TextDrawShowForPlayer(playerid, MDC_BUTTON_REQUEST_DELTA_UNIT);
TextDrawShowForPlayer(playerid, MDC_BUTTON_REQUEST_SIERRA);
TextDrawShowForPlayer(playerid, MDC_INFORMATION);
TextDrawShowForPlayer(playerid, MDC_INFORMATION_2);
TextDrawShowForPlayer(playerid, MDC_INFORMATION_3);
TextDrawShowForPlayer(playerid, MDC_INFORMATION_4);
TextDrawShowForPlayer(playerid, MDC_DEPARTMENTAL_NOTIFICATIONS);
TextDrawShowForPlayer(playerid, MDC_DEPARTMENT_NOTIFICATIONS_);
TextDrawShowForPlayer(playerid, MDC_BUTTON_ACTIVE_BOLOS);
TextDrawShowForPlayer(playerid, MDC_BUTTON_ACTIVE_ROBBERIES);
SelectTextDraw(playerid, 0xFF4040AA);
}
}
return 1;
}