Advertisement
Guest User

Los Santos Police Department Equipment - #α∂ιя.

a guest
Oct 14th, 2012
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.26 KB | None | 0 0
  1. //-----------------[Create3DTextLabel]-----------------
  2. Create3DTextLabel("{0099FF}[{FFFFFF} LS-PD Equipment | COMMAND: /enter {0099FF}]{FFFFFF}", COLOR_YELLOWG, 1568.5770,-1689.9755,6.2188, 20.0, 0, 0);
  3. Create3DTextLabel("{0099FF}[{FFFFFF} LS-PD Equipment | COMMAND: /equipment {0099FF}]{FFFFFF}", COLOR_YELLOWG, 311.9560,-165.9318,999.6010, 20.0, 0, 0);
  4. //-----------------[OnPlayerCommandText]-----------------
  5.     if(!strcmp(cmdtext, "/equipment", true))
  6.         {
  7.         if (!PlayerToPoint(100, playerid,311.9560,-165.9318,999.6010))
  8.         {
  9.         new lspdequip[] = "Nightstick\nSilenced 9mm\nDesert Eagle\nShotgun\nMP5\nM4\nAK-47\nSpraycan\nCamera\nParachute\nArmour";
  10.         ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"List of Equips:",lspdequip,"Select","Cancel");
  11.         }
  12.         return 1;
  13.         }
  14.         if (strcmp(cmd, "/enter", true) == 0)
  15.         {
  16.         new Float:cx, Float:cy, Float:cz;
  17.         GetPlayerPos(playerid, cx, cy, cz);
  18.         if(PlayerToPointStripped(4, playerid,1568.5770,-1689.9755,6.2188, cx,cy,cz))
  19.         {
  20.         if(GetPlayerState(playerid) != 1) return SendClientMessage(playerid, WHITE,"You should be on foot before using this command.");
  21.         GameTextForPlayer(playerid, "~w~Type /exit to leave.", 5000, 3);
  22.         SetPlayerPos(playerid,316.524993,-167.706985,999.593750);
  23.         SetPlayerInterior(playerid,6);
  24.         }
  25.                 return 1;
  26. }
  27. //-----------------[OnDialogResponse]-----------------
  28.         if(dialogid == 1)
  29.         {
  30.         if(response)
  31.         {
  32.         if (listitem == 0)
  33.         {
  34.         GivePlayerWeapon(playerid, 3, 1);
  35.         }
  36.         }
  37.         else if (listitem == 1)
  38.         {
  39.         GivePlayerWeapon(playerid, 23, 100);
  40.         }
  41.         }
  42.         else if (listitem == 2)
  43.         {
  44.         GivePlayerWeapon(playerid, 24, 100);
  45.         }
  46.         }
  47.         else if (listitem == 3)
  48.         {
  49.         GivePlayerWeapon(playerid, 25, 150);
  50.         }
  51.         }
  52.         else if (listitem == 4)
  53.         {
  54.         GivePlayerWeapon(playerid, 29, 500);
  55.         }
  56.         }
  57.         else if (listitem == 5)
  58.         {
  59.         GivePlayerWeapon(playerid, 31, 700);
  60.         }
  61.         }
  62.         else if (listitem == 6)
  63.         {
  64.         GivePlayerWeapon(playerid, 30, 700);
  65.         }
  66.         }
  67.         else if (listitem == 7)
  68.         {
  69.         GivePlayerWeapon(playerid, 41, 999999);
  70.         }
  71.         }
  72.         else if (listitem == 8)
  73.         {
  74.         GivePlayerWeapon(playerid, 43, 50);
  75.         }
  76.         }
  77.         else if (listitem == 9)
  78.         {
  79.         GivePlayerWeapon(playerid, 46, 1);
  80.         }
  81.         }
  82.         else if (listitem == 10)
  83.         {
  84.         SetPlayerArmour(playerid, 100);
  85.         }
  86.         }
  87.         }
  88.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement