07.09.2013, 18:46
Hello
I'm working on a race system and it's almost finished, but one of the last functions I want to implent is a position system.
Now I know this has been asked before but I couldn't find a solution in another FS tutorial...
So here's what I was thinking to do
so that's a timer, that gets called every second, in the race.
but from there I'm kinda stuck.. I was thinking about maybe looping through all the racers and see which players at at the furthest checkpoint, and then within that group checking who is the closest to the checkpoint?
But I have no idea how to do this...
Any help?
Thanks in advance
I'm working on a race system and it's almost finished, but one of the last functions I want to implent is a position system.
Now I know this has been asked before but I couldn't find a solution in another FS tutorial...
So here's what I was thinking to do
pawn Код:
public RaceTimeS(raceid)
{
for(new i; i < MAX_PLAYERS; i++)
{
if(PInfo[i][Racing] != raceid) continue; //Find for the players who are in the race
{
}
}
return 1;
}
but from there I'm kinda stuck.. I was thinking about maybe looping through all the racers and see which players at at the furthest checkpoint, and then within that group checking who is the closest to the checkpoint?
But I have no idea how to do this...
Any help?
Thanks in advance