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: Checkpoint problem. (
/showthread.php?tid=439545)
Checkpoint problem. -
lQs - 25.05.2013
/SOLVED.
Re: Checkpoint problem. -
jakejohnsonusa - 25.05.2013
Virtual World?
Re: Checkpoint problem. -
Face9000 - 25.05.2013
If you're using a streamer:
pawn Код:
new CPs[1];
#define JanitorCp 1
(1 stays for checkpoint number, if you dont have any other checkpoints, this will be the first)
OnPlayerEnterDynamicCP:
pawn Код:
if(checkpointid == CPs[JanitorCp])
{
//Do your things
}
On the command remove:
pawn Код:
SetPlayerCheckpoint(playerid,451.3937,231.4031,880.5094,10.0);
And add:
pawn Код:
CPs[JanitorCp] = CreateDynamicCP(451.3937,231.4031,880.5094,10.0);
Don't use default streamed checkpoint if you're willing to add multiple checkpoints in your gamemode.
Re: Checkpoint problem. -
lQs - 26.05.2013
/SOLVED.
Re: Checkpoint problem. -
ReVo_ - 26.05.2013
index starts from 0 so
#define JanitorCp 0
anyway, pretty stupid use an array for an element.
if you dont see it in radar it can be an interior problem you have tried to create a checkpoint outside? (w/ the command)
Re: Checkpoint problem. -
Vince - 26.05.2013
I believe this is a custom interior (default GTA interiors appear at a z height of 998 and up). Checkpoints don't work properly in custom interiors. They still work, but they won't show.
Re: Checkpoint problem. -
lQs - 26.05.2013
/SOLVED.