Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(pInfo[playerid][VehicleOwner] == closestveh || pInfo[playerid][VehicleOwner2] == closestveh || pInfo[playerid][VehicleOwner3] == closestveh || pInfo[playerid][Admin] > 5)
- {
- new string[1032];
- 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]");
- print("Verification du paramètre entré");
- if(strcmp(faire, "info", true) == 0)
- {
- print("Paramètre : Info - Début de la vérication des conditions");
- if(vTrunk[closestveh] == 0) return SCM(playerid, -1, ""ROUGEC"> Erreur:"BLANC" Le coffre n'est pas ouvert.");
- print("Coffre ouvert);
- if(Moto(veh))
- {
- SCM(playerid, -1, "Voici le contenu de votre coffre:");
- format(string, sizeof(string), "Slot 1: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot1]], vInfo[closestveh][Muni1]);
- SCM(playerid, -1, string);
- return 1;
- }
- print("Le véhicule n'est pas une moto");
- if(Voiture(veh))
- {
- SCM(playerid, -1, "Voici le contenu de votre coffre:");
- format(string, sizeof(string), "Slot 1: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot1]], vInfo[closestveh][Muni1]);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "Slot 2: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot2]], vInfo[closestveh][Muni2]);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "Slot 3: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot3]], vInfo[closestveh][Muni3]);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "Cannabis: %d Coke: %d Matos: %d", vInfo[closestveh][Cannabis], vInfo[closestveh][Cocaine], vInfo[closestveh][Matos]);
- SCM(playerid, -1, string);
- return 1;
- }
- print("Le véhicule n'est pas une voiture");
- if(Camion(veh))
- {
- SCM(playerid, -1, "Voici le contenu de votre coffre:");
- format(string, sizeof(string), "Slot 1: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot1]], vInfo[closestveh][Muni1]);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "Slot 2: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot2]], vInfo[closestveh][Muni2]);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "Slot 3: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot3]], vInfo[closestveh][Muni3]);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "Slot 4: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot4]], vInfo[closestveh][Muni4]);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "Slot 5: %s - (Munitions: %d)", GunName[vInfo[closestveh][Slot5]], vInfo[closestveh][Muni5]);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "Cannabis: %d Coke: %d Matos: %d", vInfo[closestveh][Cannabis], vInfo[closestveh][Cocaine], vInfo[closestveh][Matos]);
- SCM(playerid, -1, string);
- return 1;
- }
- print("Erreur ... Le véhicule n'est pas une moto/voiture/camion");
- return 1;
- }
- print("Fin de la commande avec le paramètre info");
- }
- else SCM(playerid, -1, ""ROUGEC"> Erreur:"BLANC" Le véhicule ne vous appartient pas.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement