#include #include #define COLOR_RED 0xAA3333AA #define COLOR_ORANGE 0xFF9900AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_WHITE2 0xFFFFFFAA #define COLOR_WHITE 0xFFFEFFFF #define COLOR_BLUE 0x0000FFFF #define COLOR_LIGHTGREEN 0x66FF00FF #define COLOR_LIGHTRED 0xFF0000FF #define COLOR_LIGHTBLUE 0x008DFFFF #define COLOR_PURPLE 0xB300FFFF #define COLOR_GREEN2 0x5DFF60FF #define COLOR_LIGHTYELLOW 0xFFFF60FF #define COLOR_FISHPINK 0xBC4747FF #define COLOR_LIGHTORANGE 0xFFAC7BFF #define COLOR_MORSKI 0x0099C8FF #define COLOR_DARKPINK 0xB999C8FF #define COLOR_PINK 0xFF99C8FF #define COLOR_HOTPINK 0xFF2EC8FF #define COLOR_PINKRED 0xFF2E50FF #define COLOR_HOTORANGE 0xFF2E12FF #define COLOR_SELEDYNOWY 0xB0B263FF #define COLOR_LIGHTPURPLE 0xFF75FFFF #define COLOR_LIGHTERBLUE 0x009FFFAA #define COLOR_JASNOZIELONY 0x00FF00FF new PlayerJoin[MAX_PLAYERS]; forward Count(playerid); forward Race(playerid); new MiejsceMonster[200] = 0; new MiejsceDrag[200] = 0; new MiejsceDrift[200] = 0; main() { print("\n----------------------------------"); print(" This is a blank GameModeScript"); print("----------------------------------\n"); } new Float:Monster[53][3] = // '53' is the number of checkpoints. '3' is the arguments like x,y and z. { {-719.5689,1002.4004,12.1328}, {-683.0812,1048.0464,12.1328}, {-618.0433,1072.1442,11.7367}, {-576.9752,1114.7977,10.9163}, {-657.4642,1224.5004,12.1859}, {-765.4241,1277.3138,13.6094}, {-819.3325,1366.3751,13.6094}, {-850.4675,1484.7618,17.5366}, {-880.9842,1492.5857,23.9889}, {-916.3329,1435.6909,29.6112}, {-960.8911,1410.3145,29.9210}, {-978.7122,1448.6093,37.1402}, {-994.4250,1427.0288,39.3582}, {-1012.8826,1402.3453,41.4771}, {-1033.6891,1430.6964,38.2061}, {-1054.4680,1491.4421,35.1365}, {-1045.3458,1543.1990,33.0567}, {-1021.3065,1627.7557,31.4144}, {-1073.8181,1691.9248,27.2726}, {-1157.0536,1787.1687,39.7574}, {-1207.7097,1859.0524,40.7691}, {-1325.5551,1922.0837,52.0465}, {-1430.5577,1940.4236,51.3225}, {-1484.1670,1953.1390,48.4909}, {-1482.4556,2056.1958,46.6772}, {-1497.7469,2135.2378,46.6119}, {-1530.8656,2194.1733,49.9983}, {-1529.1940,2286.3499,47.1628}, {-1527.8718,2353.0437,46.3540}, {-1552.0961,2363.7708,44.5345}, {-1621.5941,2386.2576,51.0235}, {-1683.2235,2334.5596,32.0129}, {-1715.3259,2318.3892,31.9559}, {-1756.2886,2294.8713,36.4629}, {-1734.9624,2322.4019,41.7162}, {-1684.2654,2398.8381,57.9200}, {-1726.6049,2419.8835,68.0746}, {-1739.1387,2466.9658,73.9156}, {-1712.4269,2466.1465,78.0004}, {-1656.4020,2466.4688,86.8363}, {-1648.0066,2500.5413,86.1030}, {-1653.8022,2567.5300,84.2023}, {-1661.9028,2624.1084,76.8312}, {-1699.5310,2658.5288,63.9638}, {-1769.4398,2708.0125,59.3531}, {-1828.8478,2654.0432,54.1222}, {-1903.2974,2509.3884,45.2788}, {-1999.7549,2440.4087,35.2850}, {-1986.8927,2375.8376,32.1436}, {-1990.5775,2259.0190,16.7774}, {-1926.6748,2218.1946,8.1599}, {-1821.3459,2133.6592,7.7778}, {-1809.0642,2046.2808,9.0366} }; new Float:Drag[2][3] = { {-1635.6012,566.2695,39.6361}, {-1137.1238,1102.8577,38.7733} }; new Float:Drift[42][3] = { {-2428.1770,-601.5674,132.5586}, {-2451.7224,-550.1100,123.5480}, {-2469.1462,-491.9794,103.4411}, {-2509.3892,-482.9269,91.1456}, {-2578.6301,-491.3780,76.2800}, {-2627.0081,-497.7761,70.3861}, {-2599.2402,-471.0821,68.5342}, {-2517.2581,-458.2853,72.2953}, {-2436.5020,-418.4506,85.3320}, {-2374.6353,-434.9427,82.0135}, {-2326.2297,-457.6618,80.0254}, {-2367.0547,-391.2793,77.7559}, {-2441.5447,-368.4287,70.5625}, {-2550.3699,-367.4618,53.1277}, {-2666.9141,-406.5307,32.2901}, {-2673.1238,-467.9659,26.2303}, {-2692.5845,-528.7919,14.7549}, {-2790.5303,-484.1041,7.1875}, {-2821.8743,-403.1117,7.0391}, {-2804.8091,-329.6932,7.0391}, {-2725.3970,-307.5553,7.0391}, {-2654.8120,-219.7890,4.1967}, {-2589.0181,-210.2223,4.1831}, {-2501.0386,-209.6958,25.4688}, {-2429.8735,-200.8871,35.1719}, {-2421.0024,-144.1711,35.1719}, {-2419.4521,-70.5441,35.2813}, {-2372.5510,-70.8962,35.2813}, {-2368.1514,-173.7362,35.1719}, {-2326.1702,-190.2767,35.1719}, {-2256.6260,-190.6745,35.1719}, {-2256.0520,-303.5994,48.8118}, {-2241.6245,-401.4846,50.8671}, {-2194.5906,-483.8855,48.4144}, {-2201.0161,-581.9301,49.4178}, {-2260.5991,-681.4068,67.5069}, {-2230.0225,-745.9642,65.3484}, {-2294.2776,-771.8696,87.1329}, {-2350.6196,-780.4990,94.7824}, {-2351.8596,-728.7206,104.4495}, {-2350.7219,-672.3616,117.3515}, {-2411.3777,-623.2709,132.4506} }; new monstercp[200] = 0; new dragcp[200] = 0; new driftcp[200] = 0; new monster[MAX_PLAYERS]; new drag[MAX_PLAYERS]; new drift[MAX_PLAYERS]; new MonsterRace[MAX_PLAYERS]; new DragRace[MAX_PLAYERS]; new DriftRace[MAX_PLAYERS]; new MonsterArea; new Drag_Area; new DriftArea; new MonsterRacers = 0; new DragRacers = 0; new DriftRacers = 0; new RaceMonsterTrwa[MAX_PLAYERS]; new RaceDragTrwa[MAX_PLAYERS]; new RaceDriftTrwa[MAX_PLAYERS]; new FirstMonsterRacer[MAX_PLAYERS]; new FirstDragRacer[MAX_PLAYERS]; new FirstDriftRacer[MAX_PLAYERS]; public OnGameModeInit() { SetTimer("TIMER_DCallbacks",1000,true); MonsterArea = AddAreaCheck(-812.7721,-655.7325,878.2739,1087.4354); Drag_Area = AddAreaCheck(-1887.3573,-1442.4912,290.2612,718.7367); DriftArea = AddAreaCheck(-2558.8147,-2330.2188,-676.9407,-507.069); return 1; } public OnGameModeExit() { print("GameModeExit()"); return 1; } public OnPlayerConnect(playerid) { monster[playerid] = 0; drag[playerid] = 0; drift[playerid] = 0; PlayerJoin[playerid] = 0; DragRace[playerid] = 0; MonsterRace[playerid] = 0; DriftRace[playerid] = 0; printf("OnPlayerConnect(%d)", playerid); return 1; } public OnPlayerDisconnect(playerid) { printf("OnPlayerDisconnect(%d)", playerid); return 1; } public OnPlayerSpawn(playerid) { printf("OnPlayerSpawn(%d)", playerid); return 1; } public OnPlayerDeath(playerid, killerid, reason) { printf("OnPlayerDeath(%d, %d, %d)", playerid, killerid, reason); return 1; } public OnVehicleSpawn(vehicleid) { printf("OnVehicleSpawn(%d)", vehicleid); return 1; } public OnVehicleDeath(vehicleid, killerid) { printf("OnVehicleDeath(%d, %d)", vehicleid, killerid); return 1; } public OnPlayerText(playerid) { printf("OnPlayerText(%d)", playerid); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/join", true)==0) { new Float:X,Float:Y,Float:Z; if(PlayerJoin[playerid] != 1){ if(IsPlayerInRaceCheckpoint(playerid)){ SendClientMessage(playerid,COLOR_YELLOW,"Dołączyłeś do wyścigu"); PlayerJoin[playerid] = 1; //::::::::::::::::::::::::::::MONSTER:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: GetPlayerPos(playerid, X, Y, Z); if(X >= -812.7721 && X <= -655.7325 && Y >= 878.2739 && Y <= 1087.4354){ if(RaceMonsterTrwa[playerid] == 0){ if(FirstMonsterRacer[playerid] == 0){ SendClientMessageToAll(COLOR_GREEN,"Wyścig monster rozpocznie się za 30 sekund!"); SetTimer("Count",25000,0); MonsterRace[playerid] = 1; MonsterRacers++; for(new i=0; i= -1846.2133 && X <= -1579.2848 && Y >= 456.5749 && Y <= 581.1303){ if(RaceDragTrwa[playerid] == 0){ if(FirstDragRacer[playerid] == 0){ SendClientMessageToAll(COLOR_GREEN,"Wyścig drag rozpocznie się za 30 sekund!"); SetTimer("Count",25000,0); DragRace[playerid] = 1; DragRacers++; for(new i=0; i= -2558.8147 && X <= -2330.2188 && Y >= -676.9407 && Y <= -507.069){//Drift_Area if(RaceDriftTrwa[playerid] == 0){ if(FirstDriftRacer[playerid] == 0){ SendClientMessageToAll(COLOR_GREEN,"Wyścig drift rozpocznie się za 30 sekund!"); SetTimer("Count",25000,0); DriftRace[playerid] = 1; DriftRacers++; for(new i=0; i 1){ monster[playerid] = 1; MiejsceMonster[playerid] = 1; SetPlayerRaceCheckpoint(playerid,0,Monster[0][0],Monster[0][1],Monster[0][2],-683.0812,1048.0464,12.1328,7); monstercp[playerid] = 0; for(new i=0; i 1){ drag[playerid] = 1; MiejsceDrag[playerid] = 1; SetPlayerRaceCheckpoint(playerid,0,Drag[0][0],Drag[0][1],Drag[0][2],-1137.1238,1102.8577,38.7733,7); dragcp[playerid] = 0; for(new i=0; i 1){ drift[playerid] = 1; MiejsceDrift[playerid] = 1; SetPlayerRaceCheckpoint(playerid,0,Drift[0][0],Drift[0][1],Drift[0][2],-2451.7224,-550.1100,123.5480,7); driftcp[playerid] = 0; for(new i=0; i 0) { format(tmp, sizeof tmp, "%i", time); GameTextForPlayer(playerid, tmp, 1000, 5); SetTimerEx("CountdownForPlayer", 1000, 0, "ii", playerid, time-1); } else { GameTextForPlayer(playerid, "~r~GO GO GO!!!", 2500, 5); } }