isplayerinrangeofpoint && checkpoints - 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: isplayerinrangeofpoint && checkpoints (
/showthread.php?tid=186575)
isplayerinrangeofpoint && checkpoints -
WillyP - 29.10.2010
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
Re: isplayerinrangeofpoint && checkpoints -
MadeMan - 29.10.2010
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);
}
}
Re: isplayerinrangeofpoint && checkpoints -
WillyP - 29.10.2010
thanks =D
edit
now it wont work..
Re: isplayerinrangeofpoint && checkpoints -
MadeMan - 29.10.2010
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);
}
Re: isplayerinrangeofpoint && checkpoints -
WillyP - 29.10.2010
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