08.07.2014, 18:41
pawn Код:
foreach(new i : Player)
{
if(inrace[i] == 1) // Change this
{
SetPlayerCheckpoint(i, x, y, z); //Insert your cordinates
}
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(inrace[playerid] == 1)
{
if(RaceCheckPoint[playerid] == LAST_CHECKPOINT) // Change ofcourse
{
foreach(new i : Player)
{
DisablePlayerCheckpoint(i);
}
}
}
return 1;
}