Checkpoints
#1

Alrighty,

I am wanting to get rid of the pesky pickup arrows for going into buildings but,

I am completely lost on these checkpoints. when I do end up getting them to work I can only see them at certain views? I have searched in many topics and really couldn't find a straight answer

Here is how it is setup on my script


Код:
new Float:checkCoords[MAX_POINTS][4] = { // (Xmin, Ymin, Xmax, Ymax)
{349.6193,160.4313, 356.7893,169.7316}, // CP_HOSPITALin
- With this do I need to get 4 coords? do I need to do a square type deal save in each four corners of where I want the door to be?


Код:
new Float:checkpoints[MAX_POINTS][3] = { // (X, Y, Z)
{354.1752,168.0155,1019.9844}, // CP_HOSPITALin
Where do I get the coords for this do I get them from one of the 4 coords above?

Reply
#2

You can only have one checkpoint at a time using regular pawno function. If you use a streamer, (Streamer by Intagito) you are allowed to have more than one, but only see them if the player is at a certain distance.
Reply
#3

you need streamers?
Reply
#4

I suggest you use this streamer. It has everything you'll need. I use this for objects and checkpoints and it works great.

http://forum.sa-mp.com/index.php?topic=127905.0
Reply
#5

thanks for the streamer guys but based on my code i gave you how would i get the coords to make a checkpoint for lets say a entrance to sheriff's department
Reply
#6

pawn Код:
for(new h = 0; h < sizeof(checkpoints); h++)
{
    CreateDynamicCP(checkpoints[h][0],checkpoints[h][1],checkpoints[h][2], 2);
}
That would loop thru all the coords and create the checkpoints at every place
Reply
#7

I want to know how to get the coordinates


Do I /save 4 coordinates like so

1--2
| |
3--4


or....

how do i get these coords

Код:
new Float:checkCoords[MAX_POINTS][4] = { // (Xmin, Ymin, Xmax, Ymax)
{349.6193,160.4313, 356.7893,169.7316}, // CP_HOSPITALin
Код:
new Float:checkpoints[MAX_POINTS][3] = { // (X, Y, Z)
{354.1752,168.0155,1019.9844}, // CP_HOSPITALin
this is the interior coords... which i understand everything below
Код:
		case CP_HOSPITALin:
			{
			if(GetPlayerVirtualWorld(playerid) == 1) { // Los Venturas
			SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid,1607.5245,1821.2295,10.8280);
			SetCameraBehindPlayer(playerid);
			SendClientMessage(playerid,COLOR_YELLOW,"(INFO) You have exited Spring Valley Hospital.");
			//SetPlayerFacingAngle(playerid,271.3165);
			SetPlayerVirtualWorld(playerid,0);
Reply
#8

yeah you just save 4 pos and take the min and max x and y
or just save your cp pos and add and subtract what ever distance to make em
Reply
#9

A checkpoint only needs X, Y, Z coordinates. Just go into your server, type "/save" and use the coordinates in your savedpositions.txt file.
Reply
#10

Thank you Grim_ , and (SF)Noobanatior that is all I was wanting to know.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)