SA-MP Forums Archive
Making A Checkpoint Only Show Within 3 - 5 Meters. - 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: Making A Checkpoint Only Show Within 3 - 5 Meters. (/showthread.php?tid=146562)



Making A Checkpoint Only Show Within 3 - 5 Meters. - KyleOwnzYou - 08.05.2010

Hello, Im Wondering What I Add To My Code.

Atm I have

"SetPlayerCheckpoint(playerid, 2826.078613, 2140.759521, 14.661464, 3.0);"

now im wondering because this makes it able to see on the map itself, and radar,

i only want it so i can see it when im around 3 - 5 meters away from the checkpoint that it will comeup on the radar ect,

thankyou


Re: Making A Checkpoint Only Show Within 3 - 5 Meters. - Miguel - 08.05.2010

Use a streamer. It allows you to set a draw distance...



Re: Making A Checkpoint Only Show Within 3 - 5 Meters. - v0nz - 08.05.2010

Quote:
Originally Posted by SAWC™
Use a streamer. It allows you to set a draw distance...
As he said, http://forum.sa-mp.com/index.php?topic=69459.0

CreateCheckpoint(playerid, Float:cpX, Float:cpY, Float:cpZ, Float:cpS, Float:viewdiss);

Download link is down there so:



Re: Making A Checkpoint Only Show Within 3 - 5 Meters. - KyleOwnzYou - 08.05.2010

Great!!!!, handy tool installed it but can i have some more help =//

public OnPlayerEnterStreamedCheckpoint(playerid, streamid)
{
CreateCheckpoint(playerid, 2826.078613, 2140.759521, 14.66146, 3.0, 5.0); //Will create a streamed checkpoint for the specified player. Use -1 as playerid for all players
DestroyCheckpoint(cPid); //Destroys a checkpoint.
TogglePlayerCheckpoint(playerid, cpid, bool:toggle); //Toggles a checkpoint on/off for a player.
return 1;
}

here is my code and

1. error 017: undefined symbol "cPid"
2. error 017: undefined symbol "toggle"


Re: Making A Checkpoint Only Show Within 3 - 5 Meters. - chaosnz - 08.05.2010

im using the same checkpoint streamer, did you follow the instructions properly?