SA-MP Forums Archive
Problems with Checkpoints.. HELP! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problems with Checkpoints.. HELP! (/showthread.php?tid=174997)



Problems with Checkpoints.. HELP! - Fedee! - 07.09.2010

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:
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);
Area 2: (This CP won't show up)
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);
Thanks!

PD: I am using ****** foreach for player loops..
PD2: I don't want to use streamers >.<


Re: Problems with Checkpoints.. HELP! - Fedee! - 08.09.2010

BUMP! Please answer


Re: Problems with Checkpoints.. HELP! - Fedee! - 09.09.2010

BUMP again! Please answer


Re: Problems with Checkpoints.. HELP! - Fedee! - 10.09.2010

Again, BUMP!


Re: Problems with Checkpoints.. HELP! - zSuYaNw - 10.09.2010

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 if(!IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58) && !IsPlayerInAnyVehicle(i))
{
DisablePlayerCheckpoint(i);
}



Re: Problems with Checkpoints.. HELP! - Fedee! - 10.09.2010

Quote:
Originally Posted by Monty_Burns
Посмотреть сообщение
dont triple post its against the rules
It's a bump, 12 hours passed.

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
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 if(!IsPlayerInArea(i, -385.3699, 1506.446, -256.9133, 1646.58) && !IsPlayerInAnyVehicle(i))
{
DisablePlayerCheckpoint(i);
}
Thanks !