Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dialog:DialogIIProductsOpz(playerid, response, listitem, inputtext[])
- {
- if(!response) return
- IllegalIndustries_ShowOptions(playerid, PlayerInfo[playerid][pIndustryMOD]);
- new id = PlayerInfo[playerid][pIndustryMOD];
- new itemid = PlayerInfo[playerid][pIngredientID];
- new inSell = IllegalIndustries_HasIngredient(id, itemid);
- new actual_id = (inSell == -1) ? IllegalIndustries_GetFreeSlot(id) : inSell;
- switch(listitem)
- {
- case 0:
- {
- IllegalIndustryInfo[id][iIngredients][actual_id] = (inSell != -1) ? -1 : itemid;
- SendAdminAlert(false, COLOR_ADMIN, "AdmCmd: %s ha impostato l'ingrediente %s %s nell'industria ID %d.", ReturnRoleplayName(playerid), InventoryObjects[itemid][invName], (IllegalIndustryInfo[id][iIngredients][actual_id] != -1) ? ("vendibile") : ("non vendibile"), id); // traduire rien comprit lel
- PlayerInfo[playerid][pIndustryMOD] = -1;
- PlayerInfo[playerid][pIngredientID] = -1;
- Log(playerid, "/iedit ingrediente", -1, id, itemid);
- SaveIllegalIndustry(id);
- }
- case 1: Dialog_Show(playerid, DialogIIProductPrice, DIALOG_STYLE_INPUT, InventoryObjects[itemid][invName], "Insérer le prix de vente (actuel: $%d) du produit %s pour l'entreprise. (ID: %d)", "Changer", "Retour", IllegalIndustryInfo[id][iPrices][inSell], InventoryObjects[itemid][invName], id); // vérifier si les arguments sont biens
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement