Advertisement
Traider

Untitled

Nov 2nd, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. stock PokazPrzedmioty(playerid)
  2. {
  3. new l = 0, comm1[32], comm2[128], string[1024];
  4. if(sscanf(comm1, "s[32]S()[128]", comm1, comm2))
  5. {
  6. foreach(i, MAX_ITEMS)
  7. {
  8. if(ItemInfo[i][pPlace] == GRACZ && ItemInfo[i][pOwner] == PlayerInfo[playerid][uid] && ItemInfo[i][puid] != 0)
  9. {
  10. if(ItemInfo[i][pused]) format(string, sizeof(string), "%s\n{FFFFFF}%d\t{E8DBC5}%s{FFFFFF}\t\t\t%d\t%d", string, ItemInfo[i][puid], ItemInfo[i][pItemName], ItemInfo[i][pWar1], ItemInfo[i][pWar2]);
  11. else format(string, sizeof(string), "%s\n{FFFFFF}%d\t{91896E}%s{FFFFFF}\t\t\t%d\t%d", string, ItemInfo[i][puid], ItemInfo[i][pItemName], ItemInfo[i][pWar1], ItemInfo[i][pWar2]);
  12. l++;
  13. }
  14. }
  15. if(l) ShowPlayerDialog(playerid, D_ITEM, DIALOG_STYLE_LIST, "[Przedmiot] Lista", string, "Uzyj", "Opcje");
  16. else GameTextForPlayer(playerid, "~r~Nie posiadasz zadnego przedmiotu", 3000, 3);
  17. }
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement