Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:database(playerid, params[])
- {
- if (GetFactionType(playerid) != FACTION_POLICE)
- return SendErrorMessage(playerid, "You're not authorized to use this command.");
- if (!PlayerData[playerid][pOnDuty])
- return SendErrorMessage(playerid, "You can't use this command while off duty!");
- if (!IsPlayerInRangeOfPoint(playerid, 6.0, 613.5034,-548.4041,-11.8663) && !IsPlayerInRangeOfPoint(playerid, 6.0, 592.9825,-547.9492,-12.3141))
- return SendErrorMessage(playerid, "You must be at the Police Computer inside the station.");
- Dialog_Show(playerid, MainMDC, DIALOG_STYLE_LIST, "Mobile Data Computer", "Active Warrants\nPlace Charges\nView Charges\nView Information\nView Tickets", "Select", "Cancel");
- return 1;
- }
- CMD:mdc(playerid, params[])
- {
- if (GetFactionType(playerid) != FACTION_POLICE)
- return SendErrorMessage(playerid, "You're not authorized to use this command.");
- if (!PlayerData[playerid][pOnDuty])
- return SendErrorMessage(playerid, "You can't use this command while off duty!");
- if (!IsACruiser(GetPlayerVehicleID(playerid)))
- return SendErrorMessage(playerid, "You must be inside a police cruiser.");
- Dialog_Show(playerid, MainMDC, DIALOG_STYLE_LIST, "Mobile Data Computer", "Active Warrants\nPlace Charges\nView Charges\nView Information\nView Tickets", "Select", "Cancel");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment