06.12.2011, 14:03
You need to use a streamer to have multiple checkpoints. I recommend Incognito's streamer plugin.
This is a template, it's not a working code. It's not a copy and paste job.
pawn Код:
new CP_LSPD;
public OnGameModeInit()
{
CP_LSPD = CreateDynamicCheckpoint(...);
return 1;
}
public OnPlayerEnterDynamicCheckpoint(playerid, checkpointid)
{
if(checkpointid == CP_LSPD)
{
SetPlayerPos(playerid, x, y, z);
SetPlayerFacingAngle(playerid, a);
SetPlayerInterior(playerid, int);
}
return 1;
}