01.07.2014, 18:25
Thanks this helped, btw when leaving a building after u got the palyerid's previous position whats the new coordinates to put? for example
if(checkpointid = entercheckpoint)
{
GetPlayerPos(playerid, xpos,ypos,zpos);
SetPlayerPos(playerid,bla bla)
SetPlayerInterior(playerid, 1);
}
now for the exit checkpoint
if(checkpointid = exitcheckpoint)
{
setplayerpos(playerid, xpos -1,ypos -1,zpos );
SetPlayerInterior(playerid, 0?);
}
is -1 the correct one to use? cause it works for some exit checkpoints just not all, i'm wondering if it has a fixed number?
if(checkpointid = entercheckpoint)
{
GetPlayerPos(playerid, xpos,ypos,zpos);
SetPlayerPos(playerid,bla bla)
SetPlayerInterior(playerid, 1);
}
now for the exit checkpoint
if(checkpointid = exitcheckpoint)
{
setplayerpos(playerid, xpos -1,ypos -1,zpos );
SetPlayerInterior(playerid, 0?);
}
is -1 the correct one to use? cause it works for some exit checkpoints just not all, i'm wondering if it has a fixed number?