How to?
#1

i have got this from a tutorial how to make checkpoints inside the store...

here is the checkpoint inside the gas station
pawn Код:
new playerCheckpoint[MAX_PLAYERS];
new Float:checkpoints[MAX_POINTS][4] = {
{-28.100069,-89.627357,1003.5469,2.0}, //gas station
and here the checkcoords of gas station .
pawn Код:
new Float:checkCoords[MAX_POINTS][4] = {
{-32.100069,-94.627357,-24.100069,-85.626357}, //gas station store
but can anyone tell me how can i get this position of checkcoords
pawn Код:
{-32.100069,-94.627357,-24.100069,-85.626357}
i tried with /save ingame when i create the checkpoint it works but when i go ingame i cant see the check point..
i know the bug is that i cant take the right checkcoords
so anyone know how can i do that?
Reply
#2

Use SetPlayerCheckpoint
Reply
#3

what you mean?
i just need to know how can i get checkcoords...
Reply
#4

deleted.
Reply
#5

Checkcoords are right. The problem is with ur coding.

pawn Код:
SetPlayerCheckPoint(playerid, -32.100069,-94.627357,-24.100069, 3);
Make ur checkpoint with this.
Reply
#6

no i dont want to use Setplayercheckpoint...
i just want to know how the hell i can get Checkcoords ..
P.s The problem is not at checkcoords i have test this..

So anyone can tell me how i can get that code??
Reply
#7

/save on-foot?
Reply
#8

yes mate i know but which is the code i should cut from here
pawn Код:
AddPlayerClass(164,912.0187,-1401.3884,13.2281,253.5764,0,0,0,0,0,0); // test
The first
pawn Код:
164
is the skin
pawn Код:
912.0187,-1401.3884,13.2281
is X, Z, y,
what about the last code what is this?
pawn Код:
253.5764
?? is this the angle ?
Reply
#9

Quote:
Originally Posted by iThePunisher
Посмотреть сообщение
yes mate i know but which is the code i should cut from here
pawn Код:
AddPlayerClass(164,912.0187,-1401.3884,13.2281,253.5764,0,0,0,0,0,0); // test
The first
pawn Код:
164
is the skin
pawn Код:
912.0187,-1401.3884,13.2281
is X, Z, y,
what about the last code what is this?
pawn Код:
253.5764
?? is this the angle ?
Yes, but don't use your saved angle for SetPlayerCheckpoint. You only need the x,y,z values plus the size of the checkpoint.

pawn Код:
// To use the first index of the first dimension of checkCoords (note indices for arrays start at 0):
SetPlayerCheckPoint(playerid, checkCoords[0][0], checkCoords[0][1], checkCoords[0][2], checkCoords[0][3]);

// 2nd index
SetPlayerCheckPoint(playerid, checkCoords[1][0], checkCoords[1][1], checkCoords[1][2], checkCoords[1][3]);

// And so on...
Reply
#10

NVM i will use other way ......................................
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)