Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // COMMANDE DE L'INVENTAIRE
- if(strcmp("/sac", cmdtext, true) == 0)
- {
- if (IsPlayerConnected(playerid))
- {
- if(arme1 != 0 && munition1 != 0)
- {
- GetWeaponName(arme1,gunname1,sizeof(gunname1));
- format(emplacement1, sizeof(emplacement1), "[Slot 1][Prendre] %s[%d]\r\n", gunname1, munition1);
- }
- else
- {
- format(emplacement1, sizeof(emplacement1), "[Slot 1][Mettre] Arme\r\n");
- }
- if(arme2 != 0 && munition2 != 0)
- {
- GetWeaponName(arme2,gunname2,sizeof(gunname2));
- format(emplacement2, sizeof(emplacement2), "[Slot 2][Prendre] %s[%d]\r\n", gunname2, munition2);
- }
- else
- {
- format(emplacement2, sizeof(emplacement2), "[Slot 2][Mettre] Arme\r\n");
- }
- if(arme3 != 0 && munition3 != 0)
- {
- GetWeaponName(arme3,gunname3,sizeof(gunname3));
- format(emplacement3, sizeof(emplacement3), "[Slot 3][Prendre] %s[%d]\r\n", gunname3, munition3);
- }
- else
- {
- format(emplacement3, sizeof(emplacement3), "[Slot 3][Mettre] Arme\r\n");
- }
- if(arme4 != 0 && munition4 != 0)
- {
- GetWeaponName(arme4,gunname4,sizeof(gunname4));
- format(emplacement4, sizeof(emplacement4), "[Slot 4][Prendre] %s[%d]\r\n", gunname4, munition4);
- }
- else
- {
- format(emplacement4, sizeof(emplacement4), "[Slot 4][Mettre] Arme\r\n");
- }
- if(arme5 != 0 && munition5 != 0)
- {
- GetWeaponName(arme5,gunname5,sizeof(gunname5));
- format(emplacement5, sizeof(emplacement5), "[Slot 5][Prendre] %s[%d]", gunname5, munition5);
- }
- else
- {
- format(emplacement5, sizeof(emplacement5), "[Slot 5][Mettre] Arme");
- }
- format(messagefinal, sizeof(messagefinal), "", emplacement1, emplacement2, emplacement3, emplacement4, emplacement5);
- 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");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement