View Full Version : Help Checkpoints

08/01/2015, 07:16 PM
I want to make a Checkpoint but I want it for Checkpoint to appear when player is in range of point that i put. When I enter a Checkpoint I don't want it to dissapear, I want the checkpoint to dissapear when I move away from it, can someone please help me? :P

08/01/2015, 07:34 PM
well it's easy just look basic streamer example for checkpoints and you'll get it.

Using function CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);

you can set small streamdistance like 20, and player will see it only when in radius of 20.0 units, and in callback just put what to happen without Disabling or removing created checkpoint :)

08/01/2015, 08:05 PM
for(new k = 0; k < sizeof(KucaInfo); k++)
new kFile[80];
format(kFile, sizeof(kFile), KUCE_FILE, k);
if(IsPlayerInRangeOfPoint(playerid, 2.0, KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ]) && CP[playerid] == 0)
CreateDynamicCP(KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ], 1.5, -1, -1, -1, 20.0);
I did this but It doesn't dissapear when I move away, can you send me what to do please

08/01/2015, 08:31 PM
Help please!