Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2011
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.96 KB | None | 0 0
  1. // COMMANDE DE L'INVENTAIRE
  2.     if(strcmp("/sac", cmdtext, true) == 0)
  3.     {
  4.         if (IsPlayerConnected(playerid))
  5.         {
  6.             if(arme1 != 0 && munition1 != 0)
  7.             {
  8.                 GetWeaponName(arme1,gunname1,sizeof(gunname1));
  9.                 format(emplacement1, sizeof(emplacement1), "[Slot 1][Prendre] %s[%d]\r\n", gunname1, munition1);
  10.             }
  11.             else
  12.             {
  13.                 format(emplacement1, sizeof(emplacement1), "[Slot 1][Mettre] Arme\r\n");
  14.             }
  15.            
  16.            
  17.             if(arme2 != 0 && munition2 != 0)
  18.             {
  19.                 GetWeaponName(arme2,gunname2,sizeof(gunname2));
  20.                 format(emplacement2, sizeof(emplacement2), "[Slot 2][Prendre] %s[%d]\r\n", gunname2, munition2);
  21.             }
  22.             else
  23.             {
  24.                 format(emplacement2, sizeof(emplacement2), "[Slot 2][Mettre] Arme\r\n");
  25.             }
  26.            
  27.            
  28.             if(arme3 != 0 && munition3 != 0)
  29.             {
  30.                 GetWeaponName(arme3,gunname3,sizeof(gunname3));
  31.                 format(emplacement3, sizeof(emplacement3), "[Slot 3][Prendre] %s[%d]\r\n", gunname3, munition3);
  32.             }
  33.             else
  34.             {
  35.                 format(emplacement3, sizeof(emplacement3), "[Slot 3][Mettre] Arme\r\n");
  36.             }
  37.            
  38.            
  39.             if(arme4 != 0 && munition4 != 0)
  40.             {
  41.                 GetWeaponName(arme4,gunname4,sizeof(gunname4));
  42.                 format(emplacement4, sizeof(emplacement4), "[Slot 4][Prendre] %s[%d]\r\n", gunname4, munition4);
  43.             }
  44.             else
  45.             {
  46.             format(emplacement4, sizeof(emplacement4), "[Slot 4][Mettre] Arme\r\n");
  47.             }
  48.            
  49.            
  50.             if(arme5 != 0 && munition5 != 0)
  51.             {
  52.                 GetWeaponName(arme5,gunname5,sizeof(gunname5));
  53.                 format(emplacement5, sizeof(emplacement5), "[Slot 5][Prendre] %s[%d]", gunname5, munition5);
  54.             }
  55.             else
  56.             {
  57.                 format(emplacement5, sizeof(emplacement5), "[Slot 5][Mettre] Arme");
  58.             }
  59.             format(messagefinal, sizeof(messagefinal), "", emplacement1, emplacement2, emplacement3, emplacement4, emplacement5);
  60.             ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Sac","[Slot 2][Mettre] Arme\r\n[Slot 3][Mettre] Arme\r\n[Slot 4][Mettre] Arme\r\n[Slot 5][Mettre] Arme\r\n","Prendre", "Fermer");
  61.             return 1;
  62.         }
  63.         return 1;
  64.     }
  65.  
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement