SHOW:
|
|
- or go back to the newest paste.
| 1 | /* | |
| 2 | ||
| 3 | - | #include <streamer> |
| 3 | + | Fait par Christopher |
| 4 | - | #define MENU_ORANGE1 3000 |
| 4 | + | Script de chez orange |
| 5 | - | #define MENU_ORANGE2 4000 |
| 5 | + | Mis à jour le 22/02/2015 |
| 6 | - | #define MENU_ORANGE3 5000 |
| 6 | + | |
| 7 | - | #define DIALOGUE_CREDITS 6000 |
| 7 | + | */ |
| 8 | - | #define CONTRAT_ORDINATEUR 7000 |
| 8 | + | |
| 9 | - | #define CONTRAT_PORTABLE 8000 |
| 9 | + | |
| 10 | - | #define CONTRAT_CASQUE 9000 |
| 10 | + | |
| 11 | - | forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); |
| 11 | + | |
| 12 | - | #if defined FILTERSCRIPT |
| 12 | + | #define MENU_ORANGE1 0 |
| 13 | - | public OnFilterScriptInit() |
| 13 | + | #define MENU_ORANGE2 1 |
| 14 | - | {
|
| 14 | + | #define MENU_ORANGE3 2 |
| 15 | - | print("\n--------------------------------------");
|
| 15 | + | #define DIALOGUE_CREDITS 3 |
| 16 | - | print("Orange");
|
| 16 | + | #define CONTRAT_ORDINATEUR 4 |
| 17 | - | print("--------------------------------------\n");
|
| 17 | + | #define CONTRAT_PORTABLE 5 |
| 18 | #define CONTRAT_CASQUE 6 | |
| 19 | ||
| 20 | public OnFilterScriptInit() {
| |
| 21 | - | public OnFilterScriptExit() |
| 21 | + | |
| 22 | - | {
|
| 22 | + | |
| 23 | Create3DTextLabel("/acheter\nPortable", 0x0000FFFF, -1946.1958,450.2138,1035.1946, 40.0, 0, 0);
| |
| 24 | CreatePickup(1239, 1, -1946.1958,450.2138,1035.1946, -1); | |
| 25 | Create3DTextLabel("/acheter\nCasque", 0x0000FFFF, -1944.1830,450.3306,1035.1946, 40.0, 0, 0);
| |
| 26 | - | #else |
| 26 | + | |
| 27 | ||
| 28 | - | main() |
| 28 | + | |
| 29 | - | {
|
| 29 | + | |
| 30 | - | print("\n----------------------------------");
|
| 30 | + | CreateObject(19381, -1945.96838, 446.75568, 1034.10860, 0.00000, 90.00000, 0.00000); |
| 31 | - | print("Orange");
|
| 31 | + | CreateObject(19381, -1945.96130, 437.12759, 1034.10860, 0.00000, 90.00000, 0.00000); |
| 32 | - | print("----------------------------------\n");
|
| 32 | + | CreateObject(19446, -1951.24683, 437.10828, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 33 | CreateObject(19446, -1951.23999, 449.93539, 1035.91500, 0.00000, 0.00000, 0.00000); | |
| 34 | CreateObject(19384, -1951.24072, 443.51987, 1035.91500, 0.00000, 0.00000, 0.00000); | |
| 35 | - | #endif |
| 35 | + | CreateObject(19446, -1946.35571, 432.38879, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 36 | CreateObject(19446, -1941.48999, 437.23074, 1035.91500, 0.00000, 0.00000, 0.00000); | |
| 37 | - | public OnGameModeInit() |
| 37 | + | CreateObject(19446, -1941.49463, 446.79074, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 38 | - | {
|
| 38 | + | CreateObject(19446, -1946.36023, 451.60590, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 39 | CreateObject(1504, -1951.21362, 442.76944, 1034.16883, 0.00000, 0.00000, 90.00000); | |
| 40 | CreateObject(2308, -1943.09961, 432.93799, 1034.18210, 0.00000, 0.00000, 0.00000); | |
| 41 | CreateObject(2308, -1949.65784, 433.93704, 1034.18210, 0.00000, 0.00000, 180.00000); | |
| 42 | CreateObject(19354, -1946.43860, 433.01193, 1035.91500, 0.00000, 0.00000, 0.00000); | |
| 43 | CreateObject(19354, -1943.18408, 434.58578, 1035.91500, 0.00000, 0.00000, 90.00000); | |
| 44 | CreateObject(19384, -1948.03198, 434.58783, 1035.91500, 0.00000, 0.00000, 90.00000); | |
| 45 | CreateObject(19384, -1945.57654, 434.58276, 1035.91500, 0.00000, 0.00000, 90.00000); | |
| 46 | CreateObject(19427, -1950.42993, 434.58377, 1035.91500, 0.00000, 0.00000, 90.00000); | |
| 47 | - | CreateDynamicObject(19381, -1945.96838, 446.75568, 1034.10860, 0.00000, 90.00000, 0.00000); |
| 47 | + | CreateObject(1491, -1947.27551, 434.62497, 1034.16880, 0.00000, 0.00000, 180.00000); |
| 48 | - | CreateDynamicObject(19381, -1945.96130, 437.12759, 1034.10860, 0.00000, 90.00000, 0.00000); |
| 48 | + | CreateObject(1491, -1946.35596, 434.57874, 1034.16880, 0.00000, 0.00000, 0.00000); |
| 49 | - | CreateDynamicObject(19446, -1951.24683, 437.10828, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 49 | + | CreateObject(18070, -1946.40356, 453.16055, 1034.65376, 0.00000, 0.00000, 0.00000); |
| 50 | - | CreateDynamicObject(19446, -1951.23999, 449.93539, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 50 | + | CreateObject(18865, -1946.82666, 451.03525, 1035.15004, 0.00000, 0.00000, 0.00000); |
| 51 | - | CreateDynamicObject(19384, -1951.24072, 443.51987, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 51 | + | CreateObject(18866, -1946.66565, 451.08392, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 52 | - | CreateDynamicObject(19446, -1946.35571, 432.38879, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 52 | + | CreateObject(18867, -1946.47351, 451.01627, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 53 | - | CreateDynamicObject(19446, -1941.48999, 437.23074, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 53 | + | CreateObject(18867, -1946.33752, 451.08078, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 54 | - | CreateDynamicObject(19446, -1941.49463, 446.79074, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 54 | + | CreateObject(18868, -1946.20825, 451.02045, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 55 | - | CreateDynamicObject(19446, -1946.36023, 451.60590, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 55 | + | CreateObject(18869, -1946.08459, 451.11133, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 56 | - | CreateDynamicObject(1504, -1951.21362, 442.76944, 1034.16883, 0.00000, 0.00000, 90.00000); |
| 56 | + | CreateObject(18870, -1945.96936, 451.01370, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 57 | - | CreateDynamicObject(2308, -1943.09961, 432.93799, 1034.18210, 0.00000, 0.00000, 0.00000); |
| 57 | + | CreateObject(18871, -1945.84509, 451.13034, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 58 | - | CreateDynamicObject(2308, -1949.65784, 433.93704, 1034.18210, 0.00000, 0.00000, 180.00000); |
| 58 | + | CreateObject(18872, -1945.72473, 451.03882, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 59 | - | CreateDynamicObject(19354, -1946.43860, 433.01193, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 59 | + | CreateObject(18873, -1945.59277, 451.14349, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 60 | - | CreateDynamicObject(19354, -1943.18408, 434.58578, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 60 | + | CreateObject(18874, -1945.47388, 451.03711, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 61 | - | CreateDynamicObject(19384, -1948.03198, 434.58783, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 61 | + | CreateObject(2190, -1949.34583, 451.28638, 1035.15753, 0.00000, 0.00000, 0.00000); |
| 62 | - | CreateDynamicObject(19384, -1945.57654, 434.58276, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 62 | + | CreateObject(2190, -1948.58459, 451.28799, 1035.15753, 0.00000, 0.00000, 0.00000); |
| 63 | - | CreateDynamicObject(19427, -1950.42993, 434.58377, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 63 | + | CreateObject(2190, -1947.84534, 451.28845, 1035.15753, 0.00000, 0.00000, 0.00000); |
| 64 | - | CreateDynamicObject(1491, -1947.27551, 434.62497, 1034.16880, 0.00000, 0.00000, 180.00000); |
| 64 | + | CreateObject(2190, -1947.08093, 451.30411, 1035.15753, 0.00000, 0.00000, 0.00000); |
| 65 | - | CreateDynamicObject(1491, -1946.35596, 434.57874, 1034.16880, 0.00000, 0.00000, 0.00000); |
| 65 | + | CreateObject(19421, -1944.59180, 451.00958, 1035.16918, 0.00000, 0.00000, 0.00000); |
| 66 | - | CreateDynamicObject(18070, -1946.40356, 453.16055, 1034.65376, 0.00000, 0.00000, 0.00000); |
| 66 | + | CreateObject(19422, -1944.28003, 450.93530, 1035.16920, 0.00000, 0.00000, 0.00000); |
| 67 | - | CreateDynamicObject(18865, -1946.82666, 451.03525, 1035.15004, 0.00000, 0.00000, 0.00000); |
| 67 | + | CreateObject(19422, -1943.94763, 451.06409, 1035.16920, 0.00000, 0.00000, 0.00000); |
| 68 | - | CreateDynamicObject(18866, -1946.66565, 451.08392, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 68 | + | CreateObject(19423, -1943.67810, 450.91919, 1035.16920, 0.00000, 0.00000, 0.00000); |
| 69 | - | CreateDynamicObject(18867, -1946.47351, 451.01627, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 69 | + | CreateObject(19384, -1944.69751, 440.92828, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 70 | - | CreateDynamicObject(18867, -1946.33752, 451.08078, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 70 | + | CreateObject(19354, -1943.00793, 445.59979, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 71 | - | CreateDynamicObject(18868, -1946.20825, 451.02045, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 71 | + | CreateObject(19354, -1944.69446, 444.08368, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 72 | - | CreateDynamicObject(18869, -1946.08459, 451.11133, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 72 | + | CreateObject(19384, -1943.00061, 442.45819, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 73 | - | CreateDynamicObject(18870, -1945.96936, 451.01370, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 73 | + | CreateObject(19354, -1944.68738, 437.82303, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 74 | - | CreateDynamicObject(18871, -1945.84509, 451.13034, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 74 | + | CreateObject(1491, -1944.71619, 440.18250, 1034.16880, 0.00000, 0.00000, 90.00000); |
| 75 | - | CreateDynamicObject(18872, -1945.72473, 451.03882, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 75 | + | CreateObject(1491, -1943.78882, 442.46896, 1034.16880, 0.00000, 0.00000, 0.00000); |
| 76 | - | CreateDynamicObject(18873, -1945.59277, 451.14349, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 76 | + | CreateObject(19384, -1942.99402, 439.72311, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 77 | - | CreateDynamicObject(18874, -1945.47388, 451.03711, 1035.15000, 0.00000, 0.00000, 0.00000); |
| 77 | + | CreateObject(1491, -1943.76660, 439.71985, 1034.16880, 0.00000, 0.00000, 0.00000); |
| 78 | - | CreateDynamicObject(2190, -1949.34583, 451.28638, 1035.15753, 0.00000, 0.00000, 0.00000); |
| 78 | + | CreateObject(2602, -1943.78162, 435.05780, 1033.97656, 0.00000, 0.00000, 180.00000); |
| 79 | - | CreateDynamicObject(2190, -1948.58459, 451.28799, 1035.15753, 0.00000, 0.00000, 0.00000); |
| 79 | + | CreateObject(19354, -1944.68518, 436.20386, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 80 | - | CreateDynamicObject(2190, -1947.84534, 451.28845, 1035.15753, 0.00000, 0.00000, 0.00000); |
| 80 | + | CreateObject(19354, -1943.07288, 436.17703, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 81 | - | CreateDynamicObject(2190, -1947.08093, 451.30411, 1035.15753, 0.00000, 0.00000, 0.00000); |
| 81 | + | CreateObject(2602, -1942.03552, 435.05292, 1033.97656, 0.00000, 0.00000, 180.00000); |
| 82 | - | CreateDynamicObject(19421, -1944.59180, 451.00958, 1035.16918, 0.00000, 0.00000, 0.00000); |
| 82 | + | CreateObject(2738, -1942.94666, 445.15613, 1034.77864, 0.00000, 0.00000, 0.00000); |
| 83 | - | CreateDynamicObject(19422, -1944.28003, 450.93530, 1035.16920, 0.00000, 0.00000, 0.00000); |
| 83 | + | CreateObject(2523, -1943.69458, 443.01486, 1034.19440, 0.00000, 0.00000, 180.00000); |
| 84 | - | CreateDynamicObject(19422, -1943.94763, 451.06409, 1035.16920, 0.00000, 0.00000, 0.00000); |
| 84 | + | CreateObject(2523, -1942.58142, 438.53030, 1034.19440, 0.00000, 0.00000, 180.00000); |
| 85 | - | CreateDynamicObject(19423, -1943.67810, 450.91919, 1035.16920, 0.00000, 0.00000, 0.00000); |
| 85 | + | CreateObject(19427, -1943.07031, 437.92270, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 86 | - | CreateDynamicObject(19384, -1944.69751, 440.92828, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 86 | + | CreateObject(19379, -1945.96130, 437.12759, 1037.50260, 0.00000, 90.00000, 0.00000); |
| 87 | - | CreateDynamicObject(19354, -1943.00793, 445.59979, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 87 | + | CreateObject(19379, -1945.96838, 446.75571, 1037.50260, 0.00000, 90.00000, 0.00000); |
| 88 | - | CreateDynamicObject(19354, -1944.69446, 444.08368, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 88 | + | CreateObject(19354, -1950.51721, 441.04105, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 89 | - | CreateDynamicObject(19384, -1943.00061, 442.45819, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 89 | + | CreateObject(1491, -1948.99707, 438.67545, 1034.16880, 0.00000, 0.00000, 90.00000); |
| 90 | - | CreateDynamicObject(19354, -1944.68738, 437.82303, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 90 | + | CreateObject(19384, -1949.00195, 439.41519, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 91 | - | CreateDynamicObject(1491, -1944.71619, 440.18250, 1034.16880, 0.00000, 0.00000, 90.00000); |
| 91 | + | CreateObject(19354, -1948.99524, 436.20505, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 92 | - | CreateDynamicObject(1491, -1943.78882, 442.46896, 1034.16880, 0.00000, 0.00000, 0.00000); |
| 92 | + | CreateObject(2308, -1950.54590, 436.14682, 1034.18210, 0.00000, 0.00000, -90.00000); |
| 93 | - | CreateDynamicObject(19384, -1942.99402, 439.72311, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 93 | + | |
| 94 | - | CreateDynamicObject(1491, -1943.76660, 439.71985, 1034.16880, 0.00000, 0.00000, 0.00000); |
| 94 | + | |
| 95 | - | CreateDynamicObject(2602, -1943.78162, 435.05780, 1033.97656, 0.00000, 0.00000, 180.00000); |
| 95 | + | public OnPlayerCommandText(playerid, cmdtext[]) {
|
| 96 | - | CreateDynamicObject(19354, -1944.68518, 436.20386, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 96 | + | if(!strcmp(cmdtext,"/lieu",true)) SetPlayerPos(playerid,-1950.5940,443.4616,1035.5147); |
| 97 | - | CreateDynamicObject(19354, -1943.07288, 436.17703, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 97 | + | if(!strcmp(cmdtext,"/contrat",true)) {
|
| 98 | - | CreateDynamicObject(2602, -1942.03552, 435.05292, 1033.97656, 0.00000, 0.00000, 180.00000); |
| 98 | + | 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");
|
| 99 | - | CreateDynamicObject(2738, -1942.94666, 445.15613, 1034.77864, 0.00000, 0.00000, 0.00000); |
| 99 | + | 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");
|
| 100 | - | CreateDynamicObject(2523, -1943.69458, 443.01486, 1034.19440, 0.00000, 0.00000, 180.00000); |
| 100 | + | 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");
|
| 101 | - | CreateDynamicObject(2523, -1942.58142, 438.53030, 1034.19440, 0.00000, 0.00000, 180.00000); |
| 101 | + | |
| 102 | - | CreateDynamicObject(19427, -1943.07031, 437.92270, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 102 | + | if(!strcmp(cmdtext,"/acheter", true)) {
|
| 103 | - | CreateDynamicObject(19379, -1945.96130, 437.12759, 1037.50260, 0.00000, 90.00000, 0.00000); |
| 103 | + | if(IsPlayerInRangeOfPoint(1, playerid,-1948.4587,450.0772,1035.1946)) {
|
| 104 | - | CreateDynamicObject(19379, -1945.96838, 446.75571, 1037.50260, 0.00000, 90.00000, 0.00000); |
| 104 | + | new Ordinateur[1]; |
| 105 | - | CreateDynamicObject(19354, -1950.51721, 441.04105, 1035.91500, 0.00000, 0.00000, 90.00000); |
| 105 | + | |
| 106 | - | CreateDynamicObject(1491, -1948.99707, 438.67545, 1034.16880, 0.00000, 0.00000, 90.00000); |
| 106 | + | |
| 107 | - | CreateDynamicObject(19384, -1949.00195, 439.41519, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 107 | + | |
| 108 | - | CreateDynamicObject(19354, -1948.99524, 436.20505, 1035.91500, 0.00000, 0.00000, 0.00000); |
| 108 | + | else if(IsPlayerInRangeOfPoint(1, playerid,-1946.1958,450.2138,1035.1946)) {
|
| 109 | - | CreateDynamicObject(2308, -1950.54590, 436.14682, 1034.18210, 0.00000, 0.00000, -90.00000); |
| 109 | + | |
| 110 | Portable[0] = 18865; | |
| 111 | Portable[1] = 18866; | |
| 112 | Portable[2] = 18867; | |
| 113 | Portable[3] = 18868; | |
| 114 | - | public OnPlayerCommandText(playerid, cmdtext[]) |
| 114 | + | |
| 115 | - | {
|
| 115 | + | |
| 116 | - | if(!strcmp(cmdtext,"/lieu",true)) |
| 116 | + | |
| 117 | - | {
|
| 117 | + | |
| 118 | - | SetPlayerPos(playerid,-1950.5940,443.4616,1035.5147); |
| 118 | + | |
| 119 | - | return 1; |
| 119 | + | |
| 120 | ShowModelSelectionMenuEx(playerid, Portable, 10, "Quelle portable souhaite-tu?", MENU_ORANGE2, 90.0, 180.0, 0.0); | |
| 121 | - | if(!strcmp(cmdtext,"/contrat",true)) |
| 121 | + | |
| 122 | - | {
|
| 122 | + | else if(IsPlayerInRangeOfPoint(1, playerid,-1944.1830,450.3306,1035.1946)) {
|
| 123 | - | if(PlayerToPoint(1, playerid,-1944.1212,433.4503,1035.1946)) // Ordinateur |
| 123 | + | |
| 124 | - | {
|
| 124 | + | |
| 125 | - | 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");
|
| 125 | + | |
| 126 | Casque[2] = 19423; | |
| 127 | - | else if(PlayerToPoint(1, playerid,-1948.8120,433.4081,1035.1946)) // Téléphone |
| 127 | + | |
| 128 | - | {
|
| 128 | + | |
| 129 | - | ShowPlayerDialog(playerid, CONTRAT_PORTABLE, DIALOG_STYLE_MSGBOX, "Téléphone", "{0000FF}Votre téléphone vous couteras {50B54A}520€", "Accepter", "Refuser");
|
| 129 | + | |
| 130 | } | |
| 131 | - | else if(PlayerToPoint(1, playerid,-1950.1018,437.0076,1035.1946)) // Casque |
| 131 | + | |
| 132 | - | {
|
| 132 | + | |
| 133 | - | ShowPlayerDialog(playerid, CONTRAT_CASQUE, DIALOG_STYLE_MSGBOX, "Casque", "{0000FF}Votre Beat's vous couteras {50B54A}399€", "Accepter", "Refuser");
|
| 133 | + | public OnPlayerModelSelectionEx(playerid, response, extraid, modelid) {
|
| 134 | switch(extraid) {
| |
| 135 | - | return 1; |
| 135 | + | case MENU_ORANGE1: {
|
| 136 | if(response) {
| |
| 137 | - | if(!strcmp(cmdtext,"/credits",true)) |
| 137 | + | SendClientMessage(playerid, 0xFF0000FF, "La responsable clientelle t'attend, va la voir dans le bureau."); |
| 138 | - | {
|
| 138 | + | CreatePickup(1318, 15, -1945.5288,435.3924,1035.1946, -1); |
| 139 | - | ShowPlayerDialog(playerid, DIALOGUE_CREDITS, DIALOG_STYLE_MSGBOX, "{E61FFC}Les crédits", "{0000FF}Chris53340 {FF8000}# {0000FF}Kiki53\n{FF8000}Ainsi que {0000FF}la communauté francophone de SAMP{FF8000}.", "Fermer", "");
|
| 139 | + | CreatePickup(1239, 15, -1944.1212,433.4503,1035.1946, -1); |
| 140 | - | return 1; |
| 140 | + | CreateObject(modelid, -1942.93604, 433.12875, 1034.99130, 0.00000, 0.00000, -90.00000);// ID du carton pour le PC :1221 |
| 141 | } | |
| 142 | - | if(!strcmp(cmdtext,"/acheter", true)) |
| 142 | + | else SendClientMessage(playerid, 0xFF0000FF, "Tu n'a rien choisie."); |
| 143 | - | {
|
| 143 | + | } |
| 144 | - | if(PlayerToPoint(1, playerid,-1948.4587,450.0772,1035.1946)) |
| 144 | + | case MENU_ORANGE2: {
|
| 145 | - | {
|
| 145 | + | if(response) {
|
| 146 | - | new Ordinateur[1]; |
| 146 | + | SendClientMessage(playerid, 0xFF0000FF, "La responsable clientelle t'attend, va la voir dans le bureau."); |
| 147 | CreatePickup(1318, 15, -1948.0116,435.2344,1035.1946, -1); | |
| 148 | CreatePickup(1239, 15, -1948.8120,433.4081,1035.1946, -1); | |
| 149 | CreateObject(modelid, -1949.48730, 433.70953, 1034.95730, 0.00000, 0.00000, 90.00000); | |
| 150 | - | else if(PlayerToPoint(1, playerid,-1946.1958,450.2138,1035.1946)) |
| 150 | + | } |
| 151 | - | {
|
| 151 | + | else SendClientMessage(playerid, 0xFF0000FF, "Tu n'a rien choisie."); |
| 152 | } | |
| 153 | case MENU_ORANGE3: {
| |
| 154 | if(response) {
| |
| 155 | SendClientMessage(playerid, 0xFF0000FF, "La responsable clientelle t'attend, va la voir dans le bureau."); | |
| 156 | CreatePickup(1318, 15, -1948.3815,439.4629,1035.1946, -1); | |
| 157 | CreatePickup(1239, 15, -1950.1018,437.0076,1035.1946, -1); | |
| 158 | CreateObject(modelid, -1950.07642, 436.30948, 1034.98014, 0.00000, 0.00000, 180.00000); | |
| 159 | } | |
| 160 | else SendClientMessage(playerid, 0xFF0000FF, "Tu n'a rien choisie."); | |
| 161 | } | |
| 162 | } | |
| 163 | return 1; | |
| 164 | } | |
| 165 | - | else if(PlayerToPoint(1, playerid,-1944.1830,450.3306,1035.1946)) |
| 165 | + | #error Un merci ne fait pas de mal. 1 point de réputation non plus. |