Dayrion

Untitled

May 7th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.64 KB | None | 0 0
  1.     if(pInfo[playerid][VehicleOwner] == closestveh || pInfo[playerid][VehicleOwner2] == closestveh || pInfo[playerid][VehicleOwner3] == closestveh || pInfo[playerid][Admin] > 5)
  2.     {
  3.         new string[1032];
  4.         if(sscanf(params, "s[20]", faire)) return SCM(playerid, -1, ""BLEUC"> Utilisation:"BLANC" /coffre [(p)rendre(a)rme ; (d)eposer(a)rme ; (p)rendre(ca)nnabis ; (d)eposer(ca)nnabis]");
  5.         print("Verification du paramètre entré");
  6.         if(strcmp(faire, "info", true) == 0)
  7.         {
  8.             print("Paramètre : Info - Début de la vérication des conditions");
  9.             if(vTrunk[closestveh] == 0) return SCM(playerid, -1, ""ROUGEC"> Erreur:"BLANC" Le coffre n'est pas ouvert.");
  10.             print("Coffre ouvert");
  11.             if(Moto(veh))
  12.             {
  13.                 SCM(playerid, -1, "Voici le contenu de votre coffre:");
  14.                 format(string, sizeof(string), "Slot 1: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot1]], vInfo[closestveh][Muni1]);
  15.                 SCM(playerid, -1, string);
  16.                 return 1;
  17.             }
  18.             print("Le véhicule n'est pas une moto");
  19.             if(Voiture(veh))
  20.             {
  21.                 SCM(playerid, -1, "Voici le contenu de votre coffre:");
  22.                 format(string, sizeof(string), "Slot 1: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot1]], vInfo[closestveh][Muni1]);
  23.                 SCM(playerid, -1, string);
  24.                 format(string, sizeof(string), "Slot 2: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot2]], vInfo[closestveh][Muni2]);
  25.                 SCM(playerid, -1, string);
  26.                 format(string, sizeof(string), "Slot 3: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot3]], vInfo[closestveh][Muni3]);
  27.                 SCM(playerid, -1, string);
  28.                 format(string, sizeof(string), "Cannabis: %d Coke: %d Matos: %d", vInfo[closestveh][Cannabis], vInfo[closestveh][Cocaine], vInfo[closestveh][Matos]);
  29.                 SCM(playerid, -1, string);
  30.                 return 1;
  31.             }
  32.             print("Le véhicule n'est pas une voiture");
  33.             if(Camion(veh))
  34.             {
  35.                 SCM(playerid, -1, "Voici le contenu de votre coffre:");
  36.                 format(string, sizeof(string), "Slot 1: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot1]], vInfo[closestveh][Muni1]);
  37.                 SCM(playerid, -1, string);
  38.                 format(string, sizeof(string), "Slot 2: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot2]], vInfo[closestveh][Muni2]);
  39.                 SCM(playerid, -1, string);
  40.                 format(string, sizeof(string), "Slot 3: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot3]], vInfo[closestveh][Muni3]);
  41.                 SCM(playerid, -1, string);
  42.                 format(string, sizeof(string), "Slot 4: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot4]], vInfo[closestveh][Muni4]);
  43.                 SCM(playerid, -1, string);
  44.                 format(string, sizeof(string), "Slot 5: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot5]], vInfo[closestveh][Muni5]);
  45.                 SCM(playerid, -1, string);
  46.                 format(string, sizeof(string), "Cannabis: %d Coke: %d Matos: %d", vInfo[closestveh][Cannabis], vInfo[closestveh][Cocaine], vInfo[closestveh][Matos]);
  47.                 SCM(playerid, -1, string);
  48.                 return 1;
  49.             }
  50.             print("Erreur ... Le véhicule n'est pas une moto/voiture/camion");
  51.             return 1;
  52.         }
  53.         print("Fin de la commande avec le paramètre info");
  54.     }
  55.     else SCM(playerid, -1, ""ROUGEC"> Erreur:"BLANC" Le véhicule ne vous appartient pas.");
  56.     return 1;
  57. }
Add Comment
Please, Sign In to add comment