Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. CMD:inventory(playerid)
  2. {
  3. for(new i = 0; i < sizeof GunInv[]; i++)
  4. {
  5. if(GunInv[playerid][i] != 0)
  6. {
  7. format(string, sizeof string, "%Предметы:\ns%s - %d\n\n", string, GunInvName[i], GunInv[playerid][i]);
  8. format(str, sizeof str, "DialogItem%d", count);
  9. SetPVarInt(playerid, str, i);
  10. count++;
  11. }
  12. ShowPlayerDialog(playerid,555,DIALOG_STYLE_LIST, "Инвентарь", string, "Далее", "Закрыть");
  13. }
  14. return 1;
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement