[How_To] race checkpoints
#1

HYE There.

i need to know , how to make a race checkpoints looks like this:

{-297.6431, 1453.7781, 74.1318},
{-306.5771, 1395.9388, 72.5701},
{-366.9018, 1463.0833, 63.3544},
{-325.1046, 1317.6740, 53.1332},
{-410.1269, 1442.7585, 36.5064},
{-438.7188, 1446.5112, 33.9354},
{-446.1768, 1609.4344, 35.5998},
{-379.8296, 1806.7285, 49.2328},
{-400.5433, 1913.5217, 58.3158},
{-441.9363, 1760.7299, 72.2819},
{-477.5064, 1940.8845, 86.4871},
{-386.7342, 2077.2131, 61.2428},
{-508.0120, 1986.8394, 60.4017},
{-883.4902, 1967.6313, 60.3968},
{-858.9233, 1819.5564, 60.4876},
{-933.5464, 1800.3136, 60.5544},
{-1013.1532, 1855.8624, 62.5493},
{-1195.6110, 1799.4983, 41.3382}
};

thanks you,

-kamalhood-
Reply
#2

pawn Код:
new CP[YourCPcount][3] = {
{
{x,y,z},
{x,y,z}
};
pawn Код:
SetPlayerRaceCheckpoint(playerid,1,CP[0][0],CP[0][1],CP[0][2],5.0);
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
Did you test that code? Clearly not or you would know it doesn't even compile! Race checkpoints have a target, which is where the arrow points to:

pawn Код:
SetPlayerRaceCheckpoint(playerid, 1, CP[n][0], CP[n][1], CP[n][2], CP[n + 1][0], CP[n + 1][1], CP[n + 1][2], 5.0);
I just give a tip, so he can use own imagination to make it somehow, and by giving already premade functions , he will not learn nothing and will ask next question.
Reply
#4

Код:
YRACE 2 password 0 0 0 8.000000
A 0 A 0 A 0 A 0 A 0
A 0 A 0 A 0 A 0 A 0
2317.239501 1426.553955 42.547786
2295.142089 1511.919433 42.541404
2277.889404 1457.560791 39.626239
2310.294921 1398.787963 36.144508
2303.589111 1509.965942 29.749565
2282.495117 1422.237548 24.572755
2305.267089 1397.537109 23.355941
2333.737060 1459.024414 19.763015
2306.200439 1509.393188 16.945383
2284.198242 1456.683593 13.978483
2307.964599 1389.976318 10.546697
2315.256835 1510.278930 10.546133
2327.900878 1564.460327 10.398034
2327.836425 1689.600097 10.398073
2327.483154 1749.988891 10.397980
2427.247558 1760.394409 10.400401
2422.863037 1687.749511 10.558676
2425.544189 1547.125244 10.407420
2349.308349 1533.631958 10.404131
2150.662841 1533.535156 10.398407
2138.674072 1482.353149 10.546525
2081.906982 1430.822753 10.406268
2041.791381 1489.805908 10.398180
2046.076904 1625.084716 10.398205
2046.733520 1705.243652 10.398124
2117.184326 1856.464965 10.398088
2125.148681 1988.644165 10.406263
it this gonna work?? ( I use Yagu's Race filterscript )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)