So, I came here with a problem which I tried many times to fix, but with no success.
I have a command /invitetorace which invites a player to race. After that I type /start and choose race to start and then to the players, who were invited to this race, should have been show a race checkpoint but it doesn't show, it shows
. Here are my codes... and yes, feel free to judge me if I didn't see something that was easy to fix
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
if (!IsPlayerInAnyVehicle(playerid))
{
return 1;
}
if(RCP[playerid] == 0) { DisablePlayerCheckpoint(playerid); } //tour
else if(RCP[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2893.7046,-510.2110,12.1551,2793.4800,-261.8569,9.2781 ,10); RCP[playerid] = 2; }
else if(RCP[playerid] == 2) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2793.4800,-261.8569,9.2781,2797.3149,100.4339,22.2715 ,10); RCP[playerid] = 3; }
else if(RCP[playerid] == 3) { DisablePlayerRaceCheckpoint(playerid); new string1[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string1, sizeof(string1), "* Krug prolaz [1/4]|| TourSA || {00C0FF}%s.",name); SendClientMessage(i, COLOR_WHITE, string1); SetPlayerRaceCheckpoint(playerid,0,2797.3149,100.4339,22.2715,2289.1807,337.8273,32.4299 ,10); RCP[playerid] = 4; } } }
else if(RCP[playerid] == 4) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2289.1807,337.8273,32.4299,2324.2542,283.4642,26.1447 ,10); RCP[playerid] = 5; }
else if(RCP[playerid] == 5) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2324.2542,283.4642,26.1447,1719.3308,300.1041,18.7635 ,10); RCP[playerid] = 6; }
else if(RCP[playerid] == 6) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1719.3308,300.1041,18.7635,1792.2961,2543.7979,13.8042 ,10); RCP[playerid] = 7; }
else if(RCP[playerid] == 7) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1792.2961,2543.7979,13.8042,335.2144,2718.8977,59.5642 ,10); RCP[playerid] = 8; }
else if(RCP[playerid] == 8) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,335.2144,2718.8977,59.5642,-1345.8080,2643.5781,50.4493 ,10); RCP[playerid] = 9; }
else if(RCP[playerid] == 9) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1345.8080,2643.5781,50.4493,-1522.4192,2732.0261,63.8600 ,10); RCP[playerid] = 10; }
else if(RCP[playerid] == 10) { DisablePlayerRaceCheckpoint(playerid); new string2[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string2, sizeof(string2), "* Krug prolaz [2/4]|| TourSA || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string2); SetPlayerRaceCheckpoint(playerid,0,-1522.4192,2732.0261,63.8600,-1816.8051,2686.0635,55.4554 ,10); RCP[playerid] = 11; } } }
else if(RCP[playerid] == 11) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1816.8051,2686.0635,55.4554,-2712.4226,2642.6670,87.7742 ,10); RCP[playerid] = 12; }
else if(RCP[playerid] == 12) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2712.4226,2642.6670,87.7742,-2656.3628,1167.4520,55.1548 ,10); RCP[playerid] = 13; }
else if(RCP[playerid] == 13) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2656.3628,1167.4520,55.1548,-1884.8536,1050.8252,45.0240 ,10); RCP[playerid] = 14; }
else if(RCP[playerid] == 14) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1884.8536,1050.8252,45.0240,-1888.7402,925.1420,34.7449 ,10); RCP[playerid] = 15; }
else if(RCP[playerid] == 15) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1888.7402,925.1420,34.7449,-1561.4791,900.6942,6.7661 ,10); RCP[playerid] = 16; }
else if(RCP[playerid] == 16) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1561.4791,900.6942,6.7661,-1798.9247,254.6815,14.1787 ,10); RCP[playerid] = 17; }
else if(RCP[playerid] == 17) { DisablePlayerRaceCheckpoint(playerid); new string3[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string3, sizeof(string3), "* Krug prolaz [3/4]|| TourSA || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string3); SetPlayerRaceCheckpoint(playerid,0,-1798.9247,254.6815,14.1787,-1813.4034,-400.7039,15.9799 ,10); RCP[playerid] = 18; } } }
else if(RCP[playerid] == 18) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1813.4034,-400.7039,15.9799,-1807.1775,-578.9196,15.9460 ,10); RCP[playerid] = 19; }
else if(RCP[playerid] == 19) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1807.1775,-578.9196,15.9460,-1216.0540,-783.2791,63.8168 ,10); RCP[playerid] = 20; }
else if(RCP[playerid] == 20) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-1216.0540,-783.2791,63.8168,-879.2859,-1101.2407,97.2683 ,10); RCP[playerid] = 21; }
else if(RCP[playerid] == 21) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-879.2859,-1101.2407,97.2683,-90.9348,-1030.9458,23.8631 ,10); RCP[playerid] = 22; }
else if(RCP[playerid] == 22) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-90.9348,-1030.9458,23.8631,-104.5307,-1487.2681,2.4281 ,10); RCP[playerid] = 23; }
else if(RCP[playerid] == 23) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-104.5307,-1487.2681,2.4281,370.9066,-1716.2456,6.8169 ,10); RCP[playerid] = 24; }
else if(RCP[playerid] == 24) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,370.9066,-1716.2456,6.8169,1042.0739,-1830.0278,13.2798 ,10); RCP[playerid] = 25; }
else if(RCP[playerid] == 25) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1042.0739,-1830.0278,13.2798,1019.5980,-2158.5068,12.6647 ,10); RCP[playerid] = 26; }
else if(RCP[playerid] == 26) { DisablePlayerRaceCheckpoint(playerid); new string4[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string4, sizeof(string4), "* Krug prolaz [4/4]|| TourSA || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string4); SetPlayerRaceCheckpoint(playerid,0,1019.5980,-2158.5068,12.6647,1357.9031,-2475.1362,7.6003 ,10); RCP[playerid] = 27; } } }
else if(RCP[playerid] == 27) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1357.9031,-2475.1362,7.6003,2178.3101,-2430.3091,13.1021 ,10); RCP[playerid] = 28; }
else if(RCP[playerid] == 28) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2178.3101,-2430.3091,13.1021,2838.4475,-1903.2343,10.6646 ,10); RCP[playerid] = 29; }
else if(RCP[playerid] == 29) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,1,2838.4475,-1903.2343,10.6646,2838.4475,-1903.2343,10.6646 ,10); RCP[playerid] = 30; }
else if(RCP[playerid] == 30)//TourSA
{
RCP[playerid] = 0;
DisablePlayerRaceCheckpoint(playerid);
new string5[128];
new name5[MAX_PLAYER_NAME];
GetPlayerName(playerid, name5, sizeof(name5));
if(FirstRaceWinner == 999)
{
FirstRaceWinner = playerid;
SendClientMessage(playerid,COLOR_GREEN,"Zavrsili ste prvi!");
foreach (Player, i)
{format(string5, sizeof(string5), "*|| CILJ || TourSA || Prvo mjesto: {00C0FF}%s.",name5);SendClientMessage(i, COLOR_GREEN, string5);}
}
else if(SecondRaceWinner == 999)
{
SecondRaceWinner = playerid;
SendClientMessage(playerid,COLOR_YELLOW,"Zavrsili ste drugi!");
foreach (Player, i)
{format(string5, sizeof(string5), "*|| CILJ || TourSA || Drugo mjesto: {00C0FF}%s.",name5);SendClientMessage(i, COLOR_YELLOW, string5);}
}
else if(ThirdRaceWinner == 999)
{
ThirdRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste treci!");
foreach (Player, i)
{format(string5, sizeof(string5), "*|| CILJ || TourSA || Trece mjesto: {00C0FF}%s.",name5);SendClientMessage(i, COLOR_WHITE, string5); SendClientMessage(i, COLOR_WHITE, "** TourSA je Zavrsen **"); RCP[i] = 0; DisablePlayerRaceCheckpoint(i);}
}
}
//cross
else if(RCP[playerid] == 30) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2284.0405,-2155.2575,49.24130,-2217.6513,-2101.2353,73.74880 ,6); RCP[playerid] = 31; }
else if(RCP[playerid] == 31) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2217.6513,-2101.2353,73.74880,-2160.0686,-2036.8841,92.03770 ,6); RCP[playerid] = 32; }
else if(RCP[playerid] == 32) { DisablePlayerRaceCheckpoint(playerid); new string6[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(PlayerInfo[playerid][pUtrka] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { format(string6, sizeof(string6), "* Krug prolaz [1/4]|| Cross Race || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string6); SetPlayerRaceCheckpoint(playerid,0,-2160.0686,-2036.8841,92.03770,-2100.6608,-1884.7255,110.0927 ,6); RCP[playerid] = 33; } } }
else if(RCP[playerid] == 33) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2100.6608,-1884.7255,110.0927,-2145.6950,-1959.4515,117.7318 ,6); RCP[playerid] = 34; }
else if(RCP[playerid] == 34) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2145.6950,-1959.4515,117.7318,-2194.3325,-2016.0939,119.0424 ,6); RCP[playerid] = 35; }
else if(RCP[playerid] == 35) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2194.3325,-2016.0939,119.0424,-2260.0578,-2074.1738,119.5689 ,6); RCP[playerid] = 36; }
else if(RCP[playerid] == 36) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2260.0578,-2074.1738,119.5689,-2433.1787,-2087.1984,123.2227 ,6); RCP[playerid] = 37; }
else if(RCP[playerid] == 37) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2433.1787,-2087.1984,123.2227,-2476.4602,-2060.9262,138.0419 ,6); RCP[playerid] = 38; }
else if(RCP[playerid] == 38) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2476.4602,-2060.9262,138.0419,-2516.1787,-1986.6613,169.0202 ,6); RCP[playerid] = 39; }
else if(RCP[playerid] == 39) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2516.1787,-1986.6613,169.0202,-2623.0405,-1843.3051,215.1410 ,6); RCP[playerid] = 40; }
else if(RCP[playerid] == 40) { DisablePlayerRaceCheckpoint(playerid); new string7[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { format(string7, sizeof(string7), "* Krug prolaz [2/4]|| Cross race || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string7); SetPlayerRaceCheckpoint(playerid,0,-2623.0405,-1843.3051,215.1410,-2650.5534,-1730.9569,257.6572 ,6); RCP[playerid] = 41; } } }
else if(RCP[playerid] == 41) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2650.5534,-1730.9569,257.6572,-2554.9626,-1862.6846,284.8549 ,6); RCP[playerid] = 42; }
else if(RCP[playerid] == 42) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2554.9626,-1862.6846,284.8549,-2516.4606,-1883.5489,297.6963 ,6); RCP[playerid] = 43; }
else if(RCP[playerid] == 43) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2516.4606,-1883.5489,297.6963,-2559.0065,-1823.9697,314.2867 ,6); RCP[playerid] = 44; }
else if(RCP[playerid] == 44) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2559.0065,-1823.9697,314.2867,-2600.3544,-1751.3997,320.6115 ,6); RCP[playerid] = 45; }
else if(RCP[playerid] == 45) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2600.3544,-1751.3997,320.6115,-2591.5778,-1625.0817,343.9083 ,6); RCP[playerid] = 46; }
else if(RCP[playerid] == 46) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2591.5778,-1625.0817,343.9083,-2585.1994,-1671.9635,351.8015 ,6); RCP[playerid] = 47; }
else if(RCP[playerid] == 47) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2585.1994,-1671.9635,351.8015,-2574.3530,-1762.7532,354.0416 ,6); RCP[playerid] = 48; }
else if(RCP[playerid] == 48) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2574.3530,-1762.7532,354.0416,-2532.9169,-1803.4257,375.6178 ,6); RCP[playerid] = 49; }
else if(RCP[playerid] == 49) { DisablePlayerRaceCheckpoint(playerid); new string8[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string8, sizeof(string8), "* Krug prolaz [3/4]|| Cross race || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string8); SetPlayerRaceCheckpoint(playerid,0,-2532.9169,-1803.4257,375.6178,-2552.7800,-1762.6214,382.7676 ,6); RCP[playerid] = 50; } } }
else if(RCP[playerid] == 50) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2552.7800,-1762.6214,382.7676,-2563.4792,-1706.2810,390.4010 ,6); RCP[playerid] = 51; }
else if(RCP[playerid] == 51) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2563.4792,-1706.2810,390.4010,-2548.9541,-1663.2196,399.9127 ,6); RCP[playerid] = 52; }
else if(RCP[playerid] == 52) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2548.9541,-1663.2196,399.9127,-2520.6647,-1733.3476,401.6333 ,6); RCP[playerid] = 53; }
else if(RCP[playerid] == 53) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2520.6647,-1733.3476,401.6333,-2444.7790,-1811.6188,409.9067 ,6); RCP[playerid] = 54; }
else if(RCP[playerid] == 54) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2444.7790,-1811.6188,409.9067,-2455.7770,-1723.2421,429.6272 ,6); RCP[playerid] = 55; }
else if(RCP[playerid] == 55) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2455.7770,-1723.2421,429.6272,-2389.9855,-1797.7052,431.0470 ,6); RCP[playerid] = 56; }
else if(RCP[playerid] == 56) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2389.9855,-1797.7052,431.0470,-2340.5908,-1818.5623,433.7160 ,6); RCP[playerid] = 57; }
else if(RCP[playerid] == 57) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2340.5908,-1818.5623,433.7160,-2293.0405,-1772.6199,451.0104 ,6); RCP[playerid] = 58; }
else if(RCP[playerid] == 58) { DisablePlayerRaceCheckpoint(playerid); new string9[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string9, sizeof(string9), "* Krug prolaz [4/4]|| Cross race || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string9); SetPlayerRaceCheckpoint(playerid,0,-2293.0405,-1772.6199,451.0104,-2280.1164,-1725.8527,470.4629 ,6); RCP[playerid] = 59; } } }
else if(RCP[playerid] == 59) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2280.1164,-1725.8527,470.4629,-2296.8154,-1680.2211,483.1449 ,6); RCP[playerid] = 60; }
else if(RCP[playerid] == 60) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-2296.8154,-1680.2211,483.1449,-2310.4208,-1653.2980,483.6955 ,6); RCP[playerid] = 61; }
else if(RCP[playerid] == 61) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,1,-2310.4208,-1653.2980,483.6955,-2310.4208,-1653.2980,483.6955 ,6); RCP[playerid] = 62; }
else if(RCP[playerid] == 62)//Kraj Cross Trke
{
RCP[playerid] = 0;
DisablePlayerRaceCheckpoint(playerid);
new string10[128];
new name10[MAX_PLAYER_NAME];
GetPlayerName(playerid, name10, sizeof(name10));
if(FirstRaceWinner == 999)
{
FirstRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste pravi!");
foreach (Player, i)
{format(string10, sizeof(string10), "*|| CILJ || Cross Race || Prvo mjesto: {00C0FF}%s.",name10);SendClientMessage(i, COLOR_WHITE, string10);}
}
else if(SecondRaceWinner == 999)
{
SecondRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste drugi!");
foreach (Player, i)
{format(string10, sizeof(string10), "*|| CILJ || Cross Race || Drugo mjesto:{00C0FF} %s.",name10);SendClientMessage(i, COLOR_WHITE, string10);}
}
else if(ThirdRaceWinner == 999)
{
ThirdRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste treci!");
foreach (Player, i)
{format(string10, sizeof(string10), "*|| CILJ || Cross Race || Trece mjesto: {00C0FF}%s.",name10);SendClientMessage(i, COLOR_WHITE, string10); SendClientMessage(i, COLOR_WHITE, "** Cross Race je Zavrsen **"); RCP[i] = 0; DisablePlayerRaceCheckpoint(i);}
}
}
//forest
else if(RCP[playerid] == 63) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1219.0029,-112.9878,39.5541,653.9628,-195.6530,11.9078 ,10); RCP[playerid] = 64; }
else if(RCP[playerid] == 64) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,653.9628,-195.6530,11.9078,300.2566,-383.2864,8.7643 ,10); RCP[playerid] = 65; }
else if(RCP[playerid] == 65) { DisablePlayerRaceCheckpoint(playerid); new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string, sizeof(string), "* Krug prolaz [1/4]|| Forest race || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string); SetPlayerRaceCheckpoint(playerid,0,300.2566,-383.2864,8.7643,472.6131,-392.0259,27.4432 ,10); RCP[playerid] = 66; } } }
else if(RCP[playerid] == 66) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,472.6131,-392.0259,27.4432,551.8199,-19.7180,27.3331 ,10); RCP[playerid] = 67; }
else if(RCP[playerid] == 67) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,551.8199,-19.7180,27.3331,874.1349,26.9309,88.7390 ,10); RCP[playerid] = 68; }
else if(RCP[playerid] == 68) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,874.1349,26.9309,88.7390,1202.4302,121.0723,22.0048 ,10); RCP[playerid] = 69; }
else if(RCP[playerid] == 69) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1202.4302,121.0723,22.0048,705.5757,223.7549,26.2194 ,10); RCP[playerid] = 70; }
else if(RCP[playerid] == 70) { DisablePlayerRaceCheckpoint(playerid); new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string, sizeof(string), "* Krug prolaz [2/4]|| Forest race || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string); SetPlayerRaceCheckpoint(playerid,0,705.5757,223.7549,26.2194,515.4391,56.6192,21.1224 ,10); RCP[playerid] = 71; } } }
else if(RCP[playerid] == 71) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,515.4391,56.6192,21.1224,350.4347,-96.8124,1.0635 ,10); RCP[playerid] = 72; }
else if(RCP[playerid] == 72) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,350.4347,-96.8124,1.0635,130.7750,-89.0518,1.1568 ,10); RCP[playerid] = 73; }
else if(RCP[playerid] == 73) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,130.7750,-89.0518,1.1568,109.9897,-213.7380,1.1568 ,10); RCP[playerid] = 74; }
else if(RCP[playerid] == 74) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,109.9897,-213.7380,1.1568,-71.3632,-184.4007,1.6444 ,10); RCP[playerid] = 75; }
else if(RCP[playerid] == 75) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-71.3632,-184.4007,1.6444,-131.2578,-33.6522,2.8442 ,10); RCP[playerid] = 76; }
else if(RCP[playerid] == 76) { DisablePlayerRaceCheckpoint(playerid); new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string, sizeof(string), "* Krug prolaz [3/4]|| Forest race || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string); SetPlayerRaceCheckpoint(playerid,0,-131.2578,-33.6522,2.8442,-38.6256,144.9273,2.8443 ,10); RCP[playerid] = 77; } } }
else if(RCP[playerid] == 77) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-38.6256,144.9273,2.8443,-360.0711,172.6759,5.1182 ,10); RCP[playerid] = 78; }
else if(RCP[playerid] == 78) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-360.0711,172.6759,5.1182,-669.7618,155.8279,26.3940 ,10); RCP[playerid] = 79; }
else if(RCP[playerid] == 79) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-669.7618,155.8279,26.3940,-616.5158,-75.0345,63.3687 ,10); RCP[playerid] = 80; }
else if(RCP[playerid] == 80) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-616.5158,-75.0345,63.3687,-510.8262,-65.4632,61.5091 ,10); RCP[playerid] = 81; }
else if(RCP[playerid] == 81) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-510.8262,-65.4632,61.5091,-291.5381,177.0561,5.5246 ,10); RCP[playerid] = 82; }
else if(RCP[playerid] == 82) { DisablePlayerRaceCheckpoint(playerid); new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));if(PlayerInfo[playerid][pUtrka] == 1){ for(new i = 0; i < MAX_PLAYERS; i++) { format(string, sizeof(string), "* Krug prolaz [4/4]|| Forest race || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string); SetPlayerRaceCheckpoint(playerid,0,-291.5381,177.0561,5.5246,-396.9426,-181.6762,63.2208 ,10); RCP[playerid] = 83; } } }
else if(RCP[playerid] == 83) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,-396.9426,-181.6762,63.2208,-553.2988,-188.4349,78.1324 ,10); RCP[playerid] = 84; }
else if(RCP[playerid] == 84) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,1,-553.2988,-188.4349,78.1324,-551.2908,-187.8606,78.3015 ,10); RCP[playerid] = 85; }
else if(RCP[playerid] == 85)//Kraj Forest Race
{
RCP[playerid] = 0;
DisablePlayerRaceCheckpoint(playerid);
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(FirstRaceWinner == 999)
{
FirstRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste prvi!");
foreach (Player, i)
{format(string, sizeof(string), "*|| CILJ || Forest Race || Prvo mjesto: {00C0FF}%s.",name);SendClientMessage(i, COLOR_WHITE, string);}
}
else if(SecondRaceWinner == 999)
{
SecondRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste drugi!");
GivePlayerCash(playerid,2500);
foreach (Player, i)
{format(string, sizeof(string), "*|| CILJ || Forest Race || Drugo mjesto: {00C0FF}%s.",name);SendClientMessage(i, COLOR_WHITE, string);}
}
else if(ThirdRaceWinner == 999)
{
ThirdRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste treci!");
GivePlayerCash(playerid,1500);
foreach (Player, i)
{format(string, sizeof(string), "*|| CILJ || Forest Race || Trece mjesto: {00C0FF}%s.",name);SendClientMessage(i, COLOR_WHITE, string); SendClientMessage(i, COLOR_WHITE, "** Forest Race je zavrsen **"); RCP[i] = 0; DisablePlayerRaceCheckpoint(i);}
}
}
else if(RCP[playerid] == 86) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1806.8937,1196.5192,6.4616,1806.6829,1502.0521,6.4654 ,12); RCP[playerid] = 87; }
else if(RCP[playerid] == 87) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1806.6829,1502.0521,6.4654,1806.4923,1806.9860,6.4654 ,12); RCP[playerid] = 88; }
else if(RCP[playerid] == 88) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1806.4923,1806.9860,6.4654,1806.3024,2091.2771,3.6370 ,12); RCP[playerid] = 89; }
else if(RCP[playerid] == 89) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1806.3024,2091.2771,3.6370,1806.6541,2333.2710,6.1851 ,12); RCP[playerid] = 90; }
else if(RCP[playerid] == 90) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,1,1806.6541,2333.2710,6.1851,1806.6541,2333.2710,6.1851 ,12); RCP[playerid] = 91; }
else if(RCP[playerid] == 91)//Kraj CRNGR
{
RCP[playerid] = 0;
DisablePlayerRaceCheckpoint(playerid);
new string55[128];
new name55[MAX_PLAYER_NAME];
GetPlayerName(playerid, name55, sizeof(name55));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(FirstRaceWinner == 999)
{
if(PlayerInfo[i][pMember] == 14 || PlayerInfo[i][pLeader] == 14)
{
SendFamilyMessage(i,NICERED,"{00C0FF}Carbon Raceri {FFFFFF}su pobijedili {FFAF00}New Generation Racere {FFFFFF}!");
SendClientMessage(playerid,COLOR_YELLOW,"Zavrsili ste prvi!");
format(string55, sizeof(string55), "* Prvo mjesto: {00C0FF}%s.",name55);SendClientMessage(playerid, COLOR_WHITE, string55);
FirstRaceWinner = playerid;
}
else {SendFamilyMessage(i,NICERED,"{00C0FF}Carbon Raceri {FFFFFF}su izgubili protiv {FFAF00}New Generation Racera {FFFFFF}!");}
if(PlayerInfo[i][pMember] == 16 || PlayerInfo[i][pLeader] == 16)
{
SendFamilyMessage(i,NICERED,"{FFAF00}New Generation Racer's{FFFFFF} su pobijedili {00C0FF}Carbon Racere {FFFFFF}!");
SendClientMessage(playerid,COLOR_YELLOW,"Zavrsili ste prvi!");
format(string55, sizeof(string55), "* Prvo mjesto: {00C0FF}%s.",name55);SendClientMessage(playerid, COLOR_WHITE, string55);
FirstRaceWinner = playerid;
}
else {SendFamilyMessage(i,NICERED,"{FFAF00}New Generation Racer's {FFFFFF}su izgubili protiv {00C0FF}Carbon Racera {FFFFFF}!");}
}
}
if(NewRCP[playerid] == 0) { DisablePlayerCheckpoint(playerid); }
else if(NewRCP[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2485.2339,838.0746,6.3008,2524.9263,847.6208,6.4407 ,10); NewRCP[playerid] = 2; }
else if(NewRCP[playerid] == 2) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2524.9263,847.6208,6.4407,2726.9570,1243.6199,6.4444 ,10); NewRCP[playerid] = 3; }
else if(NewRCP[playerid] == 3) { DisablePlayerRaceCheckpoint(playerid); new string6[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(PlayerInfo[playerid][pUtrka] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { format(string6, sizeof(string6), "* Krug prolaz [1/3]|| LVFR || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string6); SetPlayerRaceCheckpoint(playerid,0,2726.9570,1243.6199,6.4444,2727.3481,1619.8486,6.4445 ,10); NewRCP[playerid] = 4; } } }
else if(NewRCP[playerid] == 4) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2727.3481,1619.8486,6.4445,2725.2529,2164.4978,6.4536 ,10); NewRCP[playerid] = 5; }
else if(NewRCP[playerid] == 5) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2725.2529,2164.4978,6.4536,2726.6472,2193.1938,6.4483 ,10); NewRCP[playerid] = 6; }
else if(NewRCP[playerid] == 6) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2726.6472,2193.1938,6.4483,2589.9619,2559.9080,5.0457 ,10); NewRCP[playerid] = 7; }
else if(NewRCP[playerid] == 7) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,2589.9619,2559.9080,5.0457,2116.6755,2592.5413,6.4846 ,10); NewRCP[playerid] = 8; }
else if(NewRCP[playerid] == 8) { DisablePlayerRaceCheckpoint(playerid); new string6[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(PlayerInfo[playerid][pUtrka] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { format(string6, sizeof(string6), "* Krug prolaz [2/3]|| LVFR || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string6); SetPlayerRaceCheckpoint(playerid,0,2116.6755,2592.5413,6.4846,1656.7367,2477.9399,6.5466 ,10); NewRCP[playerid] = 9; } } }
else if(NewRCP[playerid] == 9) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1656.7367,2477.9399,6.5466,1257.2015,2396.7976,6.4411 ,10); NewRCP[playerid] = 10; }
else if(NewRCP[playerid] == 10) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1257.2015,2396.7976,6.4411,1207.8381,2106.8735,6.4407 ,10); NewRCP[playerid] = 11; }
else if(NewRCP[playerid] == 11) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1207.8381,2106.8735,6.4407,1207.2344,1547.3588,6.4483 ,10); NewRCP[playerid] = 12; }
else if(NewRCP[playerid] == 12) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1207.2344,1547.3588,6.4483,1207.2819,1081.0319,6.5188 ,10); NewRCP[playerid] = 13; }
else if(NewRCP[playerid] == 13) { DisablePlayerRaceCheckpoint(playerid); new string6[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(PlayerInfo[playerid][pUtrka] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { format(string6, sizeof(string6), "* Krug prolaz [3/3]|| LVFR || {00C0FF}%s.",name); SendClientMessage(i,COLOR_WHITE, string6); SetPlayerRaceCheckpoint(playerid,0,1207.2819,1081.0319,6.5188,1512.0653,834.9087,6.5226 ,10); NewRCP[playerid] = 14; } } }
else if(NewRCP[playerid] == 14) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,0,1512.0653,834.9087,6.5226,1801.5737,833.2330,10.3768 ,10); NewRCP[playerid] = 15; }
else if(NewRCP[playerid] == 15) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid,1,1801.5737,833.2330,10.3768,2060.5361,833.4899,6.4453 ,10); NewRCP[playerid] = 16; }
else if(NewRCP[playerid] == 16)//Kraj Forest Race
{
NewRCP[playerid] = 0;
DisablePlayerRaceCheckpoint(playerid);
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(FirstRaceWinner == 999)
{
FirstRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste prvi!");
foreach (Player, i)
{format(string, sizeof(string), "*|| CILJ || LVFR || Prvo mjesto: {00C0FF}%s.",name);SendClientMessage(i, COLOR_WHITE, string);}
}
else if(SecondRaceWinner == 999)
{
SecondRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste drugi!");
GivePlayerCash(playerid,2500);
foreach (Player, i)
{format(string, sizeof(string), "* || CILJ || LVFR || Drugo mjesto: {00C0FF}%s.",name);SendClientMessage(i, COLOR_WHITE, string);}
}
else if(ThirdRaceWinner == 999)
{
ThirdRaceWinner = playerid;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste treci!");
GivePlayerCash(playerid,1500);
foreach (Player, i)
{format(string, sizeof(string), "* || CILJ || LVFR || Trece mjesto: {00C0FF}%s.",name);SendClientMessage(i, COLOR_WHITE, string); SendClientMessage(i, COLOR_WHITE, "** Forest Race je zavrsen **"); RCP[i] = 0; DisablePlayerRaceCheckpoint(i);}
}
}
}
return 1;
}