OKStyle
| Дата: Пятница, 10/07/2009, 01:18 | Сообщение # 1 |
Analgésico
Регистрация: 17/01/2009 |
Клан: | [ACF] |
Статус: | |
| Code #include <a_samp> #define COLOR_GREEN 0x33AA33AA forward Close(); new gate1; new gate2; new gate3; new start1; new start2; new finish; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" F1 race script by Ernest print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else #endif public OnGameModeInit() { gate1 = CreateObject(971, 1016.925171, -3391.767578, 10.071722, 0, 0, 0); gate2 = CreateObject(971, 1026.129395, -3391.770752, 10.096722, 0, 0, 0); gate3 = CreateObject(971, 1035.418701, -3391.734131, 10.071722, 0, 0, 0); finish = CreateObject(1312, 960.985779, -3454.437988, 1.569048, 0, 0, 90); start1 = CreateObject(982, 1020.647522, -3456.813721, 4.056215, 0, 0, 0); start2 = CreateObject(982, 1020.577087, -3431.305664, 4.135345, 0, 0, 0); CreateObject(8171, 1144.347046, -3076.753662, 6.166378, 0, 0, 90); CreateObject(8171, 1259.179077, -3087.249268, 5.944197, 0, 0, 78.75); CreateObject(8171, 615.418152, -3076.909180, 6.206640, 0, 0, 90); CreateObject(8171, 526.687073, -3126.012451, 6.226634, 0, 0, 0); CreateObject(8171, 526.616699, -3263.798828, 6.279136, 0, 0, 0); CreateObject(8171, 526.673157, -3401.631592, 6.286059, 0, 0, 0); CreateObject(8171, 615.426208, -3450.753174, 6.341841, 0, 0, 90); CreateObject(8171, 664.545166, -3361.745850, 6.354857, 0, 0, 0); CreateObject(8171, 753.429260, -3312.301514, 6.375149, 0, 0, 269.9999); CreateObject(8171, 802.432861, -3401.104492, 6.386143, 0, 0, 0); CreateObject(8171, 891.550720, -3450.210693, 6.350132, 0, 0, 90); CreateObject(8171, 1028.954712, -3450.099609, 6.372660, 0, 0, 270); CreateObject(8343, 1141.910400, -3426.757813, 6.406073, 0, 0, 180); CreateObject(8171, 1028.490967, -3411.290283, 6.451790, 0, 0, 90); CreateObject(10821, 790.050537, -3076.964355, 24.117861, 0, 0, 0); CreateObject(10821, 969.576416, -3076.806885, 24.092062, 0, 0, 180); CreateObject(18284, 1048.566406, -3417.838379, 9.396629, 0, 0, 0); CreateObject(3452, 974.422852, -3384.347656, 9.501255, 0, 0, 180); CreateObject(16771, 1026.306274, -3370.042236, 13.023285, 0, 0, 180); CreateObject(8171, 1165.901855, -3309.685791, 6.373900, 0, 0, 0); CreateObject(8171, 1215.017700, -3220.029541, 5.962090, 0, 0, 270); CreateObject(8171, 1303.995483, -3170.847656, 5.931327, 0, 0, 0); CreateObject(18289, 1145.567505, -3230.302002, 6.971977, 0, 0, 348.75); CreateObject(18289, 1175.934692, -3200.645996, 6.696976, 0, 0, 258.75); CreateObject(18289, 1233.189453, -3202.395020, 6.696976, 0, 0, 258.75); CreateObject(18289, 1295.351440, -3239.763184, 6.666213, 0, 0, 78.75); CreateObject(18289, 1324.530151, -3211.113770, 6.291212, 0, 0, 168.7499); CreateObject(18289, 1323.259155, -3155.362061, 5.966210, 0, 0, 348.75); CreateObject(18289, 1301.713013, -3078.507080, 6.654079, 0, 0, 67.5); CreateObject(18289, 1245.876831, -3066.798828, 6.554083, 0, 0, 67.5); CreateObject(18289, 536.377563, -3059.118408, 6.636519, 0, 0, 78.75); CreateObject(18289, 508.915344, -3085.708252, 6.586519, 0, 0, 168.7499); CreateObject(18289, 507.401550, -3142.681885, 6.186517, 0, 0, 168.75); CreateObject(18289, 509.292358, -3441.526611, 6.445943, 0, 0, 168.75); CreateObject(18289, 536.242493, -3469.333008, 6.245942, 0, 0, 258.75); CreateObject(18289, 592.815796, -3470.725830, 5.976723, 0, 0, 258.75); CreateObject(18289, 654.214111, -3467.484375, 7.001727, 0, 0, 258.7499); CreateObject(18289, 681.828308, -3441.273926, 6.701728, 0, 0, 348.7501); CreateObject(18289, 682.660461, -3383.552490, 6.639741, 0, 0, 348.75); CreateObject(18289, 647.600159, -3322.958496, 6.689742, 0, 0, 168.7499); CreateObject(18289, 675.104553, -3295.576172, 6.614741, 0, 0, 78.75); CreateObject(18289, 732.313354, -3297.067627, 6.810034, 0, 0, 78.75); CreateObject(18289, 793.274780, -3295.225342, 6.710033, 0, 0, 78.75); CreateObject(18289, 822.686096, -3322.801270, 6.535033, 0, 0, 168.7499); CreateObject(18289, 821.247192, -3380.083740, 6.196026, 0, 0, 168.7499); CreateObject(18289, 785.649109, -3440.526611, 6.746027, 0, 0, 168.75); CreateObject(18289, 811.839050, -3470.783447, 6.621027, 0, 0, 78.75); CreateObject(18289, 867.678223, -3469.533691, 6.510016, 0, 0, 258.75); CreateObject(18289, 1123.575806, -3471.607422, 6.815960, 0, 0, 78.75); CreateObject(18289, 1166.366211, -3453.512939, 6.815958, 0, 0, 123.7499); CreateObject(18289, 1184.233765, -3412.129150, 6.790958, 0, 0, 168.7499); CreateObject(1314, 972.167786, -3378.477051, 7.340795, 0, 0, 11.25); AddStaticVehicle(415,1043.7502,-3351.1133,7.2431,89.9691,0,0); // mclaren1 AddStaticVehicle(415,1043.7678,-3354.6448,7.2398,90.1288,0,0); // mclaren2 AddStaticVehicle(415,1043.8794,-3358.3782,7.2421,89.9448,0,0); // mclaren3 AddStaticVehicle(415,1044.5145,-3364.4592,7.2393,92.7261,1,1); // audi1 AddStaticVehicle(415,1044.6277,-3368.2148,7.2408,93.2360,1,0); // audi2 AddStaticVehicle(415,1044.5573,-3371.6191,7.2400,88.6327,1,1); // audi3 AddStaticVehicle(415,1008.6920,-3351.7434,7.2390,271.6222,3,3); // ferrari1 AddStaticVehicle(415,1008.7451,-3355.3730,7.2408,270.5107,3,3); // ferrari2 AddStaticVehicle(415,1008.6789,-3358.9309,7.2406,270.0963,3,3); // ferrari3 AddStaticVehicle(415,1043.8806,-3385.0681,7.2430,91.3972,11,11); // BMW1 AddStaticVehicle(415,1043.6814,-3381.4299,7.2431,87.8563,11,11); // BMW2 AddStaticVehicle(415,1043.8468,-3377.5239,7.2410,88.6852,11,11); // BMW3 AddStaticVehicle(415,1008.4482,-3362.9646,7.2444,268.0499,6,6); // toyota1 AddStaticVehicle(415,1008.3350,-3366.5684,7.2438,267.7975,6,6); // toyota2 AddStaticVehicle(415,1008.3671,-3369.6311,7.2441,272.1360,6,6); // toyota3 AddStaticVehicle(415,1008.3535,-3373.1160,7.2399,268.9065,2,2); // peugeot1 AddStaticVehicle(415,1008.4320,-3376.0991,7.2404,269.0266,2,2); // peugeot2 AddStaticVehicle(415,1008.4003,-3378.9829,7.2390,269.4531,2,2); // peugeot3 AddStaticVehicle(470,1009.2911,-3386.0872,7.4603,271.2779,0,0); // safety car } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/xstart", true)==0) { MoveObject(start1,1020.647522, -3456.813721, 4.056215, 9.0); MoveObject(start2,1020.577087, -3431.305664, 4.135345, 9.0); return 1; } if (strcmp(cmdtext, "/xready", true)==0) { MoveObject(start1,1020.647522, -3456.813721, 7.056215, 9.0); MoveObject(start2,1020.577087, -3431.305664, 7.135345, 9.0); return 1; } if (strcmp(cmdtext, "/xfinish", true)==0) { MoveObject(finish,960.985779, -3454.437988, 10.569048, 9.0); return 1; } if (strcmp(cmdtext, "/xover", true)==0) { MoveObject(finish,960.985779, -3454.437988, 1.569048, 9.0); return 1; } if (strcmp(cmdtext, "/xopen", true)==0) { MoveObject(gate1,1045.418701,-3391.734131,10.071722, 9.0); MoveObject(gate2,1045.418701,-3391.734131,10.071722, 9.0); MoveObject(gate3,1045.418701,-3391.734131,10.071722, 9.0); return 1; } if (strcmp(cmdtext, "/xclose", true)==0) { MoveObject(gate1,1016.925171, -3391.767578, 10.071722, 9.0); MoveObject(gate2,1026.129395, -3391.770752, 10.096722, 9.0); MoveObject(gate3,1035.418701, -3391.734131, 10.071722, 9.0); return 1; } return 0; } Автор: Ernest.
|
|
| |