07.09.2010, 21:08
Ok, I am doing some checkpoints.. if a player is in an area and if he is on foot, a chekpoint will show in that area, if he leaves the area, the CP is gone, all OK to there. But if the player goes to another area, the CP won't show up :S
(I know only 1 checkpoint is allowed per player, so I use DisablePlayerCheckpoint to remove the checkpoint from the other area.)
I tryed everything, and always the same. Here is a part of the script:
Area 1:
Area 2: (This CP won't show up)
Thanks!
PD: I am using ****** foreach for player loops..
PD2: I don't want to use streamers >.<
(I know only 1 checkpoint is allowed per player, so I use DisablePlayerCheckpoint to remove the checkpoint from the other area.)
I tryed everything, and always the same. Here is a part of the script:
Area 1:
pawn Код:
if(IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58) && !IsPlayerInAnyVehicle(i))
{
SetPlayerCheckpoint(i, -290.3261, 1535.8268, 75.5625, 2.0);
}
else DisablePlayerCheckpoint(i);
pawn Код:
if(IsPlayerInArea(i, -630.6053, 2510.743, -478.7929, 2662.556) && !IsPlayerInAnyVehicle(i))
{
SetPlayerCheckpoint(i, -549.9635, 2593.4824, 53.9348, 2.0);
}
else DisablePlayerCheckpoint(i);
PD: I am using ****** foreach for player loops..
PD2: I don't want to use streamers >.<