Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DLG_LOOT1:
- {
- if(response)
- {
- SetPVarInt(playerid, "LISTITEM", PlayerInfo[playerid][pLNumber][listitem]);
- SetPVarInt(playerid, "LOOTOBJECT", PlayerInfo[playerid][pLObject][listitem]);
- if(LootInfo[GetPVarInt(playerid, "LOOTOBJECT")][lCount] > 1) return ShowPlayerDialog(playerid,DLG_LOOT2,DIALOG_STYLE_LIST,"LOOT2","Âçÿòü\nÂçÿòü íåñêîëüêî","Âûáðàòü","Íàçàä");
- if(DropInfo[GetPVarInt(playerid, "LOOTOBJECT")][dCount] > 1) return ShowPlayerDialog(playerid,DLG_LOOT2,DIALOG_STYLE_LIST,"LOOT2","Âçÿòü\nÂçÿòü íåñêîëüêî","Âûáðàòü","Íàçàä");
- switch(listitem)
- {
- case 0..25:
- {
- switch(GetPVarInt(playerid, "LISTITEM"))
- {
- case 1:
- {
- PlayerInfo[playerid][pItems][1] += 1;
- SendClientMessage(playerid, 0x8080FFFF, "Âû ïîäîáðàëè àïòå÷êó");
- }
- case 2:
- {
- PlayerInfo[playerid][pItems][2] += 1;
- SendClientMessage(playerid, 0x8080FFFF, "Âû ïîäîáðàëè òàáëåòêè");
- }
- case 3:
- {
- PlayerInfo[playerid][pItems][3] += 1;
- SendClientMessage(playerid, 0x8080FFFF, "Âû ïîäîáðàëè áðîíåæèëåò");
- }
- }
- if(LootInfo[GetPVarInt(playerid, "LOOTOBJECT")][lCount] == 1)
- {
- DestroyDynamicObject(LootObject[GetPVarInt(playerid, "LOOTOBJECT")]);
- LootInfo[GetPVarInt(playerid, "LOOTOBJECT")][lStuff] = 0;
- LootInfo[GetPVarInt(playerid, "LOOTOBJECT")][lCount] = 0;
- }
- if(DropInfo[GetPVarInt(playerid, "LOOTOBJECT")][dCount] == 1)
- {
- DestroyDynamicObject(DropObject[GetPVarInt(playerid, "LOOTOBJECT")]);
- DropInfo[GetPVarInt(playerid, "LOOTOBJECT")][dStuff] = 0;
- DropInfo[GetPVarInt(playerid, "LOOTOBJECT")][dCount] = 0;
- }
- StopAnim(playerid);
- }
- }
- }
- else StopAnim(playerid);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement