Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Fait par Christopher
- Script de chez orange
- Mis à jour le 22/02/2015
- */
- #include <a_samp>
- #include <mSelection>
- #define MENU_ORANGE1 0
- #define MENU_ORANGE2 1
- #define MENU_ORANGE3 2
- #define DIALOGUE_CREDITS 3
- #define CONTRAT_ORDINATEUR 4
- #define CONTRAT_PORTABLE 5
- #define CONTRAT_CASQUE 6
- public OnFilterScriptInit() {
- Create3DTextLabel("/acheter\nOrdinateur", 0x0000FFFF, -1948.4587,450.0772,1035.1946, 40.0, 0, 0);
- CreatePickup(1239, 1, -1948.4587,450.0772,1035.1946, -1);
- Create3DTextLabel("/acheter\nPortable", 0x0000FFFF, -1946.1958,450.2138,1035.1946, 40.0, 0, 0);
- CreatePickup(1239, 1, -1946.1958,450.2138,1035.1946, -1);
- Create3DTextLabel("/acheter\nCasque", 0x0000FFFF, -1944.1830,450.3306,1035.1946, 40.0, 0, 0);
- CreatePickup(1239, 1, -1944.1830,450.3306,1035.1946, -1);
- /* Mapping */
- CreateObject(19381, -1945.96838, 446.75568, 1034.10860, 0.00000, 90.00000, 0.00000);
- CreateObject(19381, -1945.96130, 437.12759, 1034.10860, 0.00000, 90.00000, 0.00000);
- CreateObject(19446, -1951.24683, 437.10828, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, -1951.23999, 449.93539, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19384, -1951.24072, 443.51987, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, -1946.35571, 432.38879, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, -1941.48999, 437.23074, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, -1941.49463, 446.79074, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, -1946.36023, 451.60590, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(1504, -1951.21362, 442.76944, 1034.16883, 0.00000, 0.00000, 90.00000);
- CreateObject(2308, -1943.09961, 432.93799, 1034.18210, 0.00000, 0.00000, 0.00000);
- CreateObject(2308, -1949.65784, 433.93704, 1034.18210, 0.00000, 0.00000, 180.00000);
- CreateObject(19354, -1946.43860, 433.01193, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, -1943.18408, 434.58578, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(19384, -1948.03198, 434.58783, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(19384, -1945.57654, 434.58276, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(19427, -1950.42993, 434.58377, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(1491, -1947.27551, 434.62497, 1034.16880, 0.00000, 0.00000, 180.00000);
- CreateObject(1491, -1946.35596, 434.57874, 1034.16880, 0.00000, 0.00000, 0.00000);
- CreateObject(18070, -1946.40356, 453.16055, 1034.65376, 0.00000, 0.00000, 0.00000);
- CreateObject(18865, -1946.82666, 451.03525, 1035.15004, 0.00000, 0.00000, 0.00000);
- CreateObject(18866, -1946.66565, 451.08392, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18867, -1946.47351, 451.01627, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18867, -1946.33752, 451.08078, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18868, -1946.20825, 451.02045, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18869, -1946.08459, 451.11133, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18870, -1945.96936, 451.01370, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18871, -1945.84509, 451.13034, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18872, -1945.72473, 451.03882, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18873, -1945.59277, 451.14349, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(18874, -1945.47388, 451.03711, 1035.15000, 0.00000, 0.00000, 0.00000);
- CreateObject(2190, -1949.34583, 451.28638, 1035.15753, 0.00000, 0.00000, 0.00000);
- CreateObject(2190, -1948.58459, 451.28799, 1035.15753, 0.00000, 0.00000, 0.00000);
- CreateObject(2190, -1947.84534, 451.28845, 1035.15753, 0.00000, 0.00000, 0.00000);
- CreateObject(2190, -1947.08093, 451.30411, 1035.15753, 0.00000, 0.00000, 0.00000);
- CreateObject(19421, -1944.59180, 451.00958, 1035.16918, 0.00000, 0.00000, 0.00000);
- CreateObject(19422, -1944.28003, 450.93530, 1035.16920, 0.00000, 0.00000, 0.00000);
- CreateObject(19422, -1943.94763, 451.06409, 1035.16920, 0.00000, 0.00000, 0.00000);
- CreateObject(19423, -1943.67810, 450.91919, 1035.16920, 0.00000, 0.00000, 0.00000);
- CreateObject(19384, -1944.69751, 440.92828, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, -1943.00793, 445.59979, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, -1944.69446, 444.08368, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19384, -1943.00061, 442.45819, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, -1944.68738, 437.82303, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(1491, -1944.71619, 440.18250, 1034.16880, 0.00000, 0.00000, 90.00000);
- CreateObject(1491, -1943.78882, 442.46896, 1034.16880, 0.00000, 0.00000, 0.00000);
- CreateObject(19384, -1942.99402, 439.72311, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(1491, -1943.76660, 439.71985, 1034.16880, 0.00000, 0.00000, 0.00000);
- CreateObject(2602, -1943.78162, 435.05780, 1033.97656, 0.00000, 0.00000, 180.00000);
- CreateObject(19354, -1944.68518, 436.20386, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, -1943.07288, 436.17703, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(2602, -1942.03552, 435.05292, 1033.97656, 0.00000, 0.00000, 180.00000);
- CreateObject(2738, -1942.94666, 445.15613, 1034.77864, 0.00000, 0.00000, 0.00000);
- CreateObject(2523, -1943.69458, 443.01486, 1034.19440, 0.00000, 0.00000, 180.00000);
- CreateObject(2523, -1942.58142, 438.53030, 1034.19440, 0.00000, 0.00000, 180.00000);
- CreateObject(19427, -1943.07031, 437.92270, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(19379, -1945.96130, 437.12759, 1037.50260, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, -1945.96838, 446.75571, 1037.50260, 0.00000, 90.00000, 0.00000);
- CreateObject(19354, -1950.51721, 441.04105, 1035.91500, 0.00000, 0.00000, 90.00000);
- CreateObject(1491, -1948.99707, 438.67545, 1034.16880, 0.00000, 0.00000, 90.00000);
- CreateObject(19384, -1949.00195, 439.41519, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, -1948.99524, 436.20505, 1035.91500, 0.00000, 0.00000, 0.00000);
- CreateObject(2308, -1950.54590, 436.14682, 1034.18210, 0.00000, 0.00000, -90.00000);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[]) {
- if(!strcmp(cmdtext,"/lieu",true)) SetPlayerPos(playerid,-1950.5940,443.4616,1035.5147);
- if(!strcmp(cmdtext,"/contrat",true)) {
- if(IsPlayerInRangeOfPoint(1, playerid,-1944.1212,433.4503,1035.1946)) ShowPlayerDialog(playerid, CONTRAT_ORDINATEUR, DIALOG_STYLE_MSGBOX, "Ordinateur", "{0000FF}Votre ordinateur vous couteras {50B54A}1050€\n{0000FF}Ecrant tactile {50B54A}17,3pouces 43,9cm\n{0000FF}Système d'exploitation : {50B54A}Windows 8\n{0000FF}Carte graphique : {50B54A}Intel Core I-5", "Accepter", "Refuser");
- else if(IsPlayerInRangeOfPoint(1, playerid,-1948.8120,433.4081,1035.1946)) ShowPlayerDialog(playerid, CONTRAT_PORTABLE, DIALOG_STYLE_MSGBOX, "Téléphone", "{0000FF}Votre téléphone vous couteras {50B54A}520€", "Accepter", "Refuser");
- else if(IsPlayerInRangeOfPoint(1, playerid,-1950.1018,437.0076,1035.1946)) ShowPlayerDialog(playerid, CONTRAT_CASQUE, DIALOG_STYLE_MSGBOX, "Casque", "{0000FF}Votre Beat's vous couteras {50B54A}399€", "Accepter", "Refuser");
- }
- if(!strcmp(cmdtext,"/acheter", true)) {
- if(IsPlayerInRangeOfPoint(1, playerid,-1948.4587,450.0772,1035.1946)) {
- new Ordinateur[1];
- Ordinateur[0] = 2190;
- ShowModelSelectionMenuEx(playerid, Ordinateur, 1, "Choisie bien l'Ordinateur.", MENU_ORANGE1, 0.0, 0.0, 180.0);
- }
- else if(IsPlayerInRangeOfPoint(1, playerid,-1946.1958,450.2138,1035.1946)) {
- new Portable[10];
- Portable[0] = 18865;
- Portable[1] = 18866;
- Portable[2] = 18867;
- Portable[3] = 18868;
- Portable[4] = 18869;
- Portable[5] = 18870;
- Portable[6] = 18871;
- Portable[7] = 18872;
- Portable[8] = 18873;
- Portable[9] = 18874;
- ShowModelSelectionMenuEx(playerid, Portable, 10, "Quelle portable souhaite-tu?", MENU_ORANGE2, 90.0, 180.0, 0.0);
- }
- else if(IsPlayerInRangeOfPoint(1, playerid,-1944.1830,450.3306,1035.1946)) {
- new Casque[4];
- Casque[0] = 19421;
- Casque[1] = 19422;
- Casque[2] = 19423;
- Casque[3] = 19424;
- ShowModelSelectionMenuEx(playerid, Casque, 4, "Choisie la couleur de ton casque audio.", MENU_ORANGE3, 90.0, 90.0, 0.0);
- }
- }
- return 1;
- }
- public OnPlayerModelSelectionEx(playerid, response, extraid, modelid) {
- switch(extraid) {
- case MENU_ORANGE1: {
- if(response) {
- SendClientMessage(playerid, 0xFF0000FF, "La responsable clientelle t'attend, va la voir dans le bureau.");
- CreatePickup(1318, 15, -1945.5288,435.3924,1035.1946, -1);
- CreatePickup(1239, 15, -1944.1212,433.4503,1035.1946, -1);
- CreateObject(modelid, -1942.93604, 433.12875, 1034.99130, 0.00000, 0.00000, -90.00000);// ID du carton pour le PC :1221
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Tu n'a rien choisie.");
- }
- case MENU_ORANGE2: {
- if(response) {
- SendClientMessage(playerid, 0xFF0000FF, "La responsable clientelle t'attend, va la voir dans le bureau.");
- CreatePickup(1318, 15, -1948.0116,435.2344,1035.1946, -1);
- CreatePickup(1239, 15, -1948.8120,433.4081,1035.1946, -1);
- CreateObject(modelid, -1949.48730, 433.70953, 1034.95730, 0.00000, 0.00000, 90.00000);
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Tu n'a rien choisie.");
- }
- case MENU_ORANGE3: {
- if(response) {
- SendClientMessage(playerid, 0xFF0000FF, "La responsable clientelle t'attend, va la voir dans le bureau.");
- CreatePickup(1318, 15, -1948.3815,439.4629,1035.1946, -1);
- CreatePickup(1239, 15, -1950.1018,437.0076,1035.1946, -1);
- CreateObject(modelid, -1950.07642, 436.30948, 1034.98014, 0.00000, 0.00000, 180.00000);
- }
- else SendClientMessage(playerid, 0xFF0000FF, "Tu n'a rien choisie.");
- }
- }
- return 1;
- }
- #error Un merci ne fait pas de mal. 1 point de réputation non plus.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement