Problems with Checkpoints.. HELP!
#1

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 >.<
Reply
#2

BUMP! Please answer
Reply
#3

BUMP again! Please answer
Reply
#4

Again, BUMP!
Reply
#5

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);
}
Reply
#6

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 !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)