ZahidShiraz

Untitled

Sep 5th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. CMD:mdc(playerid, params[])
  2. {
  3. if (GetFactionType(playerid) != FACTION_POLICE)
  4. return SendErrorMessage(playerid, "You're not authorized to use this command.");
  5.  
  6. if (!PlayerData[playerid][pOnDuty])
  7. return SendErrorMessage(playerid, "You can't use this command while off duty!");
  8.  
  9. if (!IsACruiser(GetPlayerVehicleID(playerid)))
  10. return SendErrorMessage(playerid, "You must be inside a police cruiser.");
  11.  
  12. Dialog_Show(playerid, MainMDC, DIALOG_STYLE_LIST, "Mobile Data Computer", "Active Warrants\nPlace Charges\nView Charges\nView Information\nView Tickets", "Select", "Cancel");
  13. return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment