isplayerinrangeofpoint && checkpoints
#1

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10,-1975.464721, 296.723876, 35.171875))
    {
        carshow = SetPlayerCheckpoint(playerid, -1975.464721, 296.723876, 35.171875, 2);
        if(IsPlayerInRangeOfPoint(playerid,11,-1975.464721, 296.723876, 35.171875))
        {
            DisablePlayerCheckpoint(carshow);
        }
    }
why wont the checkpoint disappear when i go out of the area?

i got this under opu
Reply
#2

Change carshow to playerid

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10,-1975.464721, 296.723876, 35.171875))
    {
        SetPlayerCheckpoint(playerid, -1975.464721, 296.723876, 35.171875, 2);
        if(IsPlayerInRangeOfPoint(playerid,11,-1975.464721, 296.723876, 35.171875))
        {
            DisablePlayerCheckpoint(playerid);
        }
    }
Reply
#3

thanks =D

edit


now it wont work..
Reply
#4

Try this one

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10,-1975.464721, 296.723876, 35.171875))
{
    SetPlayerCheckpoint(playerid, -1975.464721, 296.723876, 35.171875, 2);
}
else
{
    DisablePlayerCheckpoint(playerid);
}
Reply
#5

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Try this one

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10,-1975.464721, 296.723876, 35.171875))
{
    SetPlayerCheckpoint(playerid, -1975.464721, 296.723876, 35.171875, 2);
}
else
{
    DisablePlayerCheckpoint(playerid);
}
thanks again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)