How to make teleport checkpoint
#2

Well, simple, use SetPlayerCheckpoint and OnPlayerEnterCheckpoint. For example:

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid,0.0,0.0,0.0);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerPos(playerid,0.0,0.0,0.0);
    return 1;
}
You will of course have to substitute your own x,y,z positions for it to work the way you want it to work. Additionally you need to keep in mind this is only an example, you should use it to integrate it into the script the way you want it to work by reading and understanding the code.
Reply


Messages In This Thread
How to make teleport checkpoint - by Darien - 13.02.2011, 17:06
Re: How to make teleport checkpoint - by JaTochNietDan - 13.02.2011, 17:08
Re: How to make teleport checkpoint - by Darien - 13.02.2011, 17:10
Re: How to make teleport checkpoint - by JaTochNietDan - 13.02.2011, 17:12
[No subject] - by Darien - 13.02.2011, 17:13
Re: How to make teleport checkpoint - by Mean - 13.02.2011, 19:53
Re: How to make teleport checkpoint - by Darien - 13.02.2011, 20:39
Re: How to make teleport checkpoint - by Mean - 13.02.2011, 21:29
Re: How to make teleport checkpoint - by Darien - 14.02.2011, 11:32
Re: How to make teleport checkpoint - by Mean - 14.02.2011, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)