How to? -
iThePunisher - 24.03.2014
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?
Re: How to? -
UnknownOwner - 24.03.2014
Use SetPlayerCheckpoint
Re: How to? -
iThePunisher - 24.03.2014
what you mean?
i just need to know how can i get checkcoords...
Re: How to? -
HitterHitman - 24.03.2014
deleted.
Re: How to? -
Hanuman - 24.03.2014
Checkcoords are right. The problem is with ur coding.
pawn Код:
SetPlayerCheckPoint(playerid, -32.100069,-94.627357,-24.100069, 3);
Make ur checkpoint with this.
Re: How to? -
iThePunisher - 27.03.2014
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??
Re: How to? -
Kyance - 27.03.2014
/save on-foot?
Re: How to? -
iThePunisher - 27.03.2014
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
is the skin
pawn Код:
912.0187,-1401.3884,13.2281
is X, Z, y,
what about the last code what is this?
?? is this the angle ?
Re: How to? -
Corekt - 27.03.2014
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 is the skin
pawn Код:
912.0187,-1401.3884,13.2281
is X, Z, y,
what about the last code what is this? ?? 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...
Re: How to? -
iThePunisher - 27.03.2014
NVM i will use other way ......................................