Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock PokazPrzedmioty(playerid)
- {
- new l = 0, comm1[32], comm2[128], string[1024];
- if(sscanf(comm1, "s[32]S()[128]", comm1, comm2))
- {
- foreach(i, MAX_ITEMS)
- {
- if(ItemInfo[i][pPlace] == GRACZ && ItemInfo[i][pOwner] == PlayerInfo[playerid][uid] && ItemInfo[i][puid] != 0)
- {
- 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]);
- 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]);
- l++;
- }
- }
- if(l) ShowPlayerDialog(playerid, D_ITEM, DIALOG_STYLE_LIST, "[Przedmiot] Lista", string, "Uzyj", "Opcje");
- else GameTextForPlayer(playerid, "~r~Nie posiadasz zadnego przedmiotu", 3000, 3);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement