Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.04 KB | None | 0 0
  1. if(LocalPlayer():HasPoliceRank(PoliceWhitelist.RANK_SENIOR_OFFICER)) then
  2.         GAMEMODE.DialogPanel:AddDialog("Glock 17, please.", NPC.SwitchGun, 5022)
  3.         if(LocalPlayer():HasPoliceRank(PoliceWhitelist.RANK_CORPORAL)) then
  4.             GAMEMODE.DialogPanel:AddDialog("Walther P99, please.", NPC.SwitchGun, 5030)
  5.             if(LocalPlayer():HasPoliceRank(PoliceWhitelist.RANK_SERGEANT)) then
  6.                 GAMEMODE.DialogPanel:AddDialog("HK USP40, please.", NPC.SwitchGun, 5027)
  7.                 GAMEMODE.DialogPanel:AddDialog("Sig Sauer P226, please.", NPC.SwitchGun, 5031)
  8.                 if(LocalPlayer():HasPoliceRank(PoliceWhitelist.RANK_LIEUTENANT)) then
  9.                     GAMEMODE.DialogPanel:AddDialog("Glock 20, please.", NPC.SwitchGun, 5008)
  10.                     if(LocalPlayer():HasPoliceRank(PoliceWhitelist.RANK_CAPTAIN)) then
  11.                         GAMEMODE.DialogPanel:AddDialog("Colt M1911, please.", NPC.SwitchGun, 5013)
  12.                         if(LocalPlayer():HasPoliceRank(PoliceWhitelist.RANK_CHIEF_OF_DEPARTMENT)) then
  13.                             GAMEMODE.DialogPanel:AddDialog("Colt Python, please.", NPC.SwitchGun, 5041)
  14.                         end
  15.                     end
  16.                 end
  17.             end
  18.         end
  19.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement