Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.00 KB | None | 0 0
  1. case DLG_LOOT1:
  2.         {
  3.             if(response)
  4.             {
  5.                 SetPVarInt(playerid, "LISTITEM", PlayerInfo[playerid][pLNumber][listitem]);
  6.                 SetPVarInt(playerid, "LOOTOBJECT", PlayerInfo[playerid][pLObject][listitem]);
  7.                 if(LootInfo[GetPVarInt(playerid, "LOOTOBJECT")][lCount] > 1) return ShowPlayerDialog(playerid,DLG_LOOT2,DIALOG_STYLE_LIST,"LOOT2","Âçÿòü\nÂçÿòü íåñêîëüêî","Âûáðàòü","Íàçàä");
  8.                 if(DropInfo[GetPVarInt(playerid, "LOOTOBJECT")][dCount] > 1) return ShowPlayerDialog(playerid,DLG_LOOT2,DIALOG_STYLE_LIST,"LOOT2","Âçÿòü\nÂçÿòü íåñêîëüêî","Âûáðàòü","Íàçàä");
  9.                 switch(listitem)
  10.                 {
  11.                     case 0..25:
  12.                     {
  13.                         switch(GetPVarInt(playerid, "LISTITEM"))
  14.                         {
  15.                             case 1:
  16.                             {
  17.                                 PlayerInfo[playerid][pItems][1] += 1;
  18.                                 SendClientMessage(playerid, 0x8080FFFF, "Âû ïîäîáðàëè àïòå÷êó");
  19.                             }
  20.                             case 2:
  21.                             {
  22.                                 PlayerInfo[playerid][pItems][2] += 1;
  23.                                 SendClientMessage(playerid, 0x8080FFFF, "Âû ïîäîáðàëè òàáëåòêè");
  24.                             }
  25.                             case 3:
  26.                             {
  27.                                 PlayerInfo[playerid][pItems][3] += 1;
  28.                                 SendClientMessage(playerid, 0x8080FFFF, "Âû ïîäîáðàëè áðîíåæèëåò");
  29.                             }
  30.                         }
  31.                         if(LootInfo[GetPVarInt(playerid, "LOOTOBJECT")][lCount] == 1)
  32.                         {
  33.                             DestroyDynamicObject(LootObject[GetPVarInt(playerid, "LOOTOBJECT")]);
  34.                             LootInfo[GetPVarInt(playerid, "LOOTOBJECT")][lStuff] = 0;
  35.                             LootInfo[GetPVarInt(playerid, "LOOTOBJECT")][lCount] = 0;
  36.                         }
  37.                         if(DropInfo[GetPVarInt(playerid, "LOOTOBJECT")][dCount] == 1)
  38.                         {
  39.                             DestroyDynamicObject(DropObject[GetPVarInt(playerid, "LOOTOBJECT")]);
  40.                             DropInfo[GetPVarInt(playerid, "LOOTOBJECT")][dStuff] = 0;
  41.                             DropInfo[GetPVarInt(playerid, "LOOTOBJECT")][dCount] = 0;
  42.                         }
  43.                         StopAnim(playerid);
  44.                     }
  45.                 }
  46.             }
  47.             else StopAnim(playerid);
  48.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement