Quote:
Originally Posted by Kaliber
//Edit: Ok you dont need this function, just write it like this:
PHP код:
public checkpointUpdate()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
for(new j; j < sizeof checkpoints; j++)
{
if(!IsPlayerInRangeOfPoint(i,4.0,checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3])) continue;
if(playerCheckpoint[i]!=j)
{
SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
playerCheckpoint[i] = j;
}
else DisablePlayerCheckpoint(i),playerCheckpoint[i] = 999;
}
}
}
|
Quote:
Originally Posted by Ralfie
Streamer mate, streamer.
|
Quote:
Originally Posted by Kaliber
Well, yes you have a brain or?
PHP код:
if(!IsPlayerInRangeOfPoint(i,4.0,checkpoints[j][0],checkpoints[j][1],checkpoints[j][2])) continue;
|
LOL, my mind isn't with scripting today I guess. Also, another problem has arisen:
The checkpoints disappear and appear over and over and i can't do anything in them because of that. Not sure what code to post.