22.12.2010, 21:18
hi,
below u can see how i create the checkpoints.
Everything is fine but theres one little problem.
Theres a timer, every 10 minutes theres a cp created somewhere on my map (visible for every player in the server).
But if a player joins after the timer has set this cp, he isnt able to see it.
He has to wait for the next time the next timer sets the next cp. (to be able to see the cp)
How can i do it like if theres already a cp active, and a new player joins (after the creation of the cp) he is also able to see it right after spawn?
regards.
below u can see how i create the checkpoints.
Everything is fine but theres one little problem.
Theres a timer, every 10 minutes theres a cp created somewhere on my map (visible for every player in the server).
But if a player joins after the timer has set this cp, he isnt able to see it.
He has to wait for the next time the next timer sets the next cp. (to be able to see the cp)
How can i do it like if theres already a cp active, and a new player joins (after the creation of the cp) he is also able to see it right after spawn?
pawn Код:
stock SetPlayerCheckpointForAll(ID, playerid, Float:x, Float:y, Float:z, Float:size) // Creating a new function that includes an ID parameter
{
CheckPoint[playerid] = ID; // Setting the players variable to the ID of the created checkpoint.
SetPlayerCheckpoint(playerid, x, y, z, size); // Creating the checkpoint.
}
SetCheckpointForAll(cp3,-599.5901,2043.0802,60.1875,2.0);
DisableCheckpointForAll(cp3,-599.5901,2043.0802,60.1875,2.0);