28.06.2009, 20:58
So somthing like this.
pawn Код:
new CheckStatus[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 2609.8323,1129.0747,10.6719, 3.0);
CheckStatus[playerid] = 1;
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(CheckStatus[playerid] == 1)
{
SetPlayerPos(playerid, 2587.2661,1146.1643,10.8203);
CheckStatus[playerid] = 2;
SetPlayerCheckpoint(playerid, 2587.2661,1146.1643,10.8203, 3.0);
}
if(CheckStatus[playerid] == 2)
{
SetPlayerPos(playerid, 2609.8323,1129.0747,10.6719);
CheckStatus[playerid] = 1;
}
return 1;
}