Posts: 3,351
Threads: 780
Joined: Jan 2010
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.
Posts: 535
Threads: 36
Joined: Oct 2009
Reputation:
0
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)
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.