[HELP]Checkpoint Problem! - 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)
+--- Thread: [HELP]Checkpoint Problem! (
/showthread.php?tid=397191)
[HELP]Checkpoint Problem! -
Veeco - 03.12.2012
Hey
Have A Problem...
I Made Checkpoints But... When I Enter That First I Can't Go Near The Checkpoint:/
Quote:
//Includes
#include <a_samp>
#include <streamer>
#include <zcmd>
CMDtartharvest(playerid, params[])
{
SetPlayerCheckpoint(playerid, -102.0503, 148.3964, 3.1164, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, -102.0503, 148.3964, 3.1164, 3.0))
{
SetPlayerCheckpoint(playerid, -123.4742, 98.0780, 3.1172, 3.0);
}
if(IsPlayerInRangeOfPoint(playerid, -123.4742, 98.0780, 3.1172, 3.0))
{
SetPlayerCheckpoint(playerid, -109.7551, 151.8636, 3.3736, 3.0);
}
return 1;
}
|
Its 0 Errors.
Whats The Problem?
I Have Newest Plugins.
Re: [HELP]Checkpoint Problem! -
LarzI - 03.12.2012
When you enter the first checkpoint (-102.0503, 148.3964, 3.1164, 3.0) you can't go near the next one - is that was you mean? I don't quite get your question.
Re: [HELP]Checkpoint Problem! -
Veeco - 03.12.2012
When I Try To Enter First Checkpoint I Be Froozen xD I Cant Enter It Or Move Me:/
Re: [HELP]Checkpoint Problem! -
DexterBR - 03.12.2012
Try to this after IsPlayerInRangeOfPoint
Код:
if(IsPlayerInRangeOfPoint(playerid, coords))
{
DisablePlayerCheckpoint(playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, coords);
{
DisablePlayerCheckpoint(playerid);
}