Help needed.
#1

Hello.
Lets say i drove thru a checkpoint 1min ago, now i want to get back to its location by using a cmd that teleports you back to the last checkpoint you've gone thru.
How can i do that?

Regards. Buwla.
Reply
#2

Use SetPlayerPos.
Reply
#3

pawn Код:
new Float:LastCPPos[MAX_PLAYERS][3];
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
  GetPlayerPos(playerid, LastCPPos[playerid][0], LastCPPos[playerid][1], LastCPPos[playerid][2]);
  return 1;
}
pawn Код:
SetPlayerPos(playerid, LastCPPos[playerid][0], LastCPPos[playerid][1], LastCPPos[playerid][2]);
Reply
#4

Thanks for the answer, it works great. =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)