Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Police_ammunation(playerid, menu_id)
- {
- new
- string[200];
- switch(menu_id)
- {
- case 0:
- {
- format(string, sizeof(string),"Prendre un gilet (%d)\n\
- Armes non létales\n\
- Armes type DEAGLE\n\
- Armes type SHOTGUN\n\
- Armes type MP5\n\
- Armes type M4\n\
- Armes type RIFLE/SNIPER",
- Job_infos[JOB_LSPD_ID][j_Amount][0]);
- return Dialog(playerid, DIALOG_POL_AMMU, DIALOG_STYLE_TABLIST, "Police/Armurerie", string, "Ok", "Retour");
- }
- case 1: // Gilets
- {
- format(string, sizeof(string),"> "HEX_GREY"Gilets: "HEX_WHITE"%d\nGilet kevlar basique\nGilet kevlar tactique \"SWAT\" noir\nGilet kevlar tactique gris\nGilet kevlar tactique\"POLICE\" noir", Job_infos[JOB_LSPD_ID][j_Amount][0]);
- return Dialog(playerid, DIALOG_POL_AMMU_ARMOR, DIALOG_STYLE_TABLIST, "Police/Armurerie", string, "Ok", "Retour");
- }
- case 2: // Armes non létales
- {
- format(string, sizeof(string),"%d\tTazer\n\
- %d\tBeanbag\n\
- %d\tMatraque\n\
- %d\tCaméra\n\
- %d\tGazeuze\n\
- %d\tRadar\n\
- %d\nGrenade fumigène",
- Job_infos[JOB_LSPD_ID][j_Amount][1],
- Job_infos[JOB_LSPD_ID][j_Amount][2],
- Job_infos[JOB_LSPD_ID][j_Amount][3],
- Job_infos[JOB_LSPD_ID][j_Amount][4],
- Job_infos[JOB_LSPD_ID][j_Amount][5],
- Job_infos[JOB_LSPD_ID][j_Amount][14],
- Job_infos[JOB_LSPD_ID][j_Amount][20]);
- return Dialog(playerid, DIALOG_POL_AMMU_1, DIALOG_STYLE_TABLIST, "Police/Armurerie", string, "Ok", "Retour");
- }
- case 3: // Type DEAGLE
- {
- format(string, sizeof(string),""HEX_GREY"[Prendre un chargeur (%d)]\t\n\
- %d\tUSP\n\
- %d\tGlock\n\
- %d\tSW38\n\
- %d\tSig Sauer",
- Job_infos[JOB_LSPD_ID][j_Ammo][0],
- Job_infos[JOB_LSPD_ID][j_Amount][6],
- Job_infos[JOB_LSPD_ID][j_Amount][7],
- Job_infos[JOB_LSPD_ID][j_Amount][15],
- Job_infos[JOB_LSPD_ID][j_Amount][16]);
- return Dialog(playerid, DIALOG_POL_AMMU_2, DIALOG_STYLE_TABLIST, "Police/Armurerie", string, "Ok", "Retour");
- }
- case 4: // Type SHOTGUN
- {
- format(string, sizeof(string),""HEX_GREY"[Prendre un chargeur (%d)]\t\n\
- %d\tBennelli M3\n\
- %d\tRemington 870",
- Job_infos[JOB_LSPD_ID][j_Ammo][1],
- Job_infos[JOB_LSPD_ID][j_Amount][8],
- Job_infos[JOB_LSPD_ID][j_Amount][9]);
- return Dialog(playerid, DIALOG_POL_AMMU_3, DIALOG_STYLE_TABLIST, "Police/Armurerie", string, "Ok", "Retour");
- }
- case 5: // Type MP5
- {
- format(string, sizeof(string),""HEX_GREY"[Prendre un chargeur (%d)]\t\n\
- %d\tP90\n\
- %d\tUMP",
- Job_infos[JOB_LSPD_ID][j_Ammo][2],
- Job_infos[JOB_LSPD_ID][j_Amount][10],
- Job_infos[JOB_LSPD_ID][j_Amount][11]);
- return Dialog(playerid, DIALOG_POL_AMMU_4, DIALOG_STYLE_TABLIST, "Police/Armurerie", string, "Ok", "Retour");
- }
- case 6: // Type M4
- {
- format(string, sizeof(string),""HEX_GREY"[Prendre un chargeur (%d)]\t\n\
- %d\tM422\n\
- %d\tM4A2",
- Job_infos[JOB_LSPD_ID][j_Ammo][3],
- Job_infos[JOB_LSPD_ID][j_Amount][12],
- Job_infos[JOB_LSPD_ID][j_Amount][13]);
- return Dialog(playerid, DIALOG_POL_AMMU_5, DIALOG_STYLE_TABLIST, "Police/Armurerie", string, "Ok", "Retour");
- }
- case 7: // Type SNIPER/RIFLE
- {
- format(string, sizeof(string),""HEX_GREY"[Prendre un chargeur (%d)]\t\n\
- %d\tRugermini (rifle)\n\
- %d\tPSG1 (sniper)\n\
- %d\tBarret M82 (sniper)",
- Job_infos[JOB_LSPD_ID][j_Ammo][4],
- Job_infos[JOB_LSPD_ID][j_Amount][17],
- Job_infos[JOB_LSPD_ID][j_Amount][18],
- Job_infos[JOB_LSPD_ID][j_Amount][19]);
- return Dialog(playerid, DIALOG_POL_AMMU_6, DIALOG_STYLE_TABLIST, "Police/Armurerie", string, "Ok", "Retour");
- }
- }
- return true;
- }
- public Police_stock(playerid, menu_id)
- {
- new
- string[512],
- slot;
- switch(menu_id)
- {
- case 0:
- {
- return Dialog(playerid, DIALOG_POL_STORE, DIALOG_STYLE_LIST, "Police/Store", ""HEX_GREY"[Ranger un objet dans le store]\nMatériel individuel\nMatériel routier", "Ok", "Retour");
- }
- // Rendre un objet
- case 1:
- {
- if(!Player_infos[playerid][p_Slot][SLOT_HANDS])
- return errorMessage(playerid, "Vous n'avez rien en main.");
- switch(Player_infos[playerid][p_Slot][SLOT_HANDS])
- {
- case OBJECT_ID_ROAD_SIGN_1: slot = 0;
- case OBJECT_ID_CONE: slot = 1;
- case OBJECT_ID_ROAD_BARRIER_1: slot = 2;
- case OBJECT_ID_ROAD_BARRIER_2: slot = 3;
- case OBJECT_ID_ROAD_SIGN_2: slot = 4;
- case OBJECT_ID_POLICE_CAP: slot = 5;
- case OBJECT_ID_POLICE_MOTOR: slot = 6;
- case OBJECT_ID_POLICE_HAT_1: slot = 7;
- case OBJECT_ID_POLICE_HAT_2: slot = 8;
- case OBJECT_ID_POLICE_HOLSTER: slot = 9;
- case OBJECT_ID_POLICE_SWAT: slot = 10;
- case OBJECT_ID_POLICE_SHIELD: slot = 11;
- case OBJECT_ID_POLICE_HAT_VISOR: slot = 12;
- case OBJECT_ID_LAMP: slot = 13;
- case OBJECT_ID_ORANGE_VEST: slot = 14;
- case OBJECT_ID_SPIKE: slot = 15;
- case CUSTOM_ID_GAZ_MASK: slot = 16;
- case CUSTOM_ID_SWAT_HELMET: slot = 17;
- case CUSTOM_ID_RIOT_HELMET: slot = 18;
- default: return errorMessage(playerid, "Cet objet ne peut pas être ranger dans le store.");
- }
- Job_infos[JOB_LSPD_ID][j_Store][slot]++;
- format(string, sizeof(string),"Vous avez rangé un(e) %s dans le store.",Object_get_name(Player_infos[playerid][p_Slot][SLOT_HANDS]));
- Message(playerid, CIM3, string);
- Player_remove_object(playerid, SLOT_HANDS);
- Job_update(JOB_LSPD_ID);
- Police_stock(playerid, 0);
- format(string, sizeof(string),"[STOCK] %s a rangé un(e) %s dans le store", GetLogName(playerid), Object_get_name(Player_infos[playerid][p_Slot][SLOT_HANDS]));
- Job_log(string, JOB_LSPD_ID);
- }
- // Matériel individuel
- case 2:
- {
- format(string, sizeof(string),"%d\tCasquette\n\
- %d\tCasque de motard\n\
- %d\tChapeau marron\n\
- %d\tChapeau noir\n\
- %d\tHolster\n\
- %d\tCasque SWAT (1)\n\
- %d\tBouclier anti-émeute\n\
- %d\tChapeau à visière\n\
- %d\tLampe torche\n\
- %d\tGilet orange\n\
- %d\tCasque SWAT (2)\n\
- %d\tMasque à gaz\n\
- %d\tCasque anti-émeute",
- Job_infos[JOB_LSPD_ID][j_Store][5],
- Job_infos[JOB_LSPD_ID][j_Store][6],
- Job_infos[JOB_LSPD_ID][j_Store][7],
- Job_infos[JOB_LSPD_ID][j_Store][8],
- Job_infos[JOB_LSPD_ID][j_Store][9],
- Job_infos[JOB_LSPD_ID][j_Store][10],
- Job_infos[JOB_LSPD_ID][j_Store][11],
- Job_infos[JOB_LSPD_ID][j_Store][12],
- Job_infos[JOB_LSPD_ID][j_Store][13],
- Job_infos[JOB_LSPD_ID][j_Store][14],
- Job_infos[JOB_LSPD_ID][j_Store][17],
- Job_infos[JOB_LSPD_ID][j_Store][16],
- Job_infos[JOB_LSPD_ID][j_Store][18]);
- return Dialog(playerid, DIALOG_POL_STORE_2, DIALOG_STYLE_TABLIST, "Police/Store/Matériel individuel", string, "Ok", "Retour");
- }
- // Matériel routier
- case 3:
- {
- format(string, sizeof(string),"%d\tPanneau routier\n\
- %d\tCône\n\
- %d\tBarrière routière (1)\n\
- %d\tBarrière routière (2)\n\
- %d\tPanneau routier \"route fermée\"\n\
- %d\tHerse",
- Job_infos[JOB_LSPD_ID][j_Store][0],
- Job_infos[JOB_LSPD_ID][j_Store][1],
- Job_infos[JOB_LSPD_ID][j_Store][2],
- Job_infos[JOB_LSPD_ID][j_Store][3],
- Job_infos[JOB_LSPD_ID][j_Store][4],
- Job_infos[JOB_LSPD_ID][j_Store][15]);
- return Dialog(playerid, DIALOG_POL_STORE_3, DIALOG_STYLE_TABLIST, "Police/Store/Matériel routier", string, "Ok", "Retour");
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement