ZahidShiraz

Untitled

Sep 5th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. CMD:database(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 (!IsPlayerInRangeOfPoint(playerid, 6.0, 613.5034,-548.4041,-11.8663) && !IsPlayerInRangeOfPoint(playerid, 6.0, 592.9825,-547.9492,-12.3141))
  10. return SendErrorMessage(playerid, "You must be at the Police Computer inside the station.");
  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. }
  15.  
  16. CMD:mdc(playerid, params[])
  17. {
  18. if (GetFactionType(playerid) != FACTION_POLICE)
  19. return SendErrorMessage(playerid, "You're not authorized to use this command.");
  20.  
  21. if (!PlayerData[playerid][pOnDuty])
  22. return SendErrorMessage(playerid, "You can't use this command while off duty!");
  23.  
  24. if (!IsACruiser(GetPlayerVehicleID(playerid)))
  25. return SendErrorMessage(playerid, "You must be inside a police cruiser.");
  26.  
  27. Dialog_Show(playerid, MainMDC, DIALOG_STYLE_LIST, "Mobile Data Computer", "Active Warrants\nPlace Charges\nView Charges\nView Information\nView Tickets", "Select", "Cancel");
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment