Advertisement
Guest User

Clothing script

a guest
Apr 22nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. CMD:clothing(playerid, params[])
  2. {
  3. new string[MAX_PLAYER_CLOTHING * 64];
  4. for(new i = 0; i < MAX_PLAYER_CLOTHING; i ++)
  5. {
  6. if(ClothingInfo[playerid][i][cExists])
  7. {
  8. if(ClothingInfo[playerid][i][cAttached]) {
  9. format(string, sizeof(string), "%s\n{C8C8C8}%i) {00AA00}%s {FFD700}(Attached)", string, i + 1, ClothingInfo[playerid][i][cName]);
  10. } else {
  11. format(string, sizeof(string), "%s\n{C8C8C8}%i) {00AA00}%s{FFFFFF}", string, i + 1, ClothingInfo[playerid][i][cName]);
  12. }
  13. }
  14. else
  15. {
  16. format(string, sizeof(string), "%s\n{C8C8C8}%i) {AFAFAF}Empty Slot{FFFFFF}", string, i + 1);
  17. }
  18. }
  19. ShowPlayerDialog(playerid, DIALOG_CLOTHING, DIALOG_STYLE_LIST, "My clothing items", string, "Select", "Cancel");
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement