13.02.2011, 17:08
Well, simple, use SetPlayerCheckpoint and OnPlayerEnterCheckpoint. For example:
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.
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;
}