05.03.2009, 17:54
pawn Код:
new cp1[MAX_PLAYERS];
new cp2[MAX_PLAYERS];
pawn Код:
// Somewhere in script (maybe in command ex. /setcheckpoint)
SetPlayerCheckpoint(playerid, 1520.5525,-2604.5759,13.5469,3);
cp1[playerid] = 1;
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(cp1[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 246.6656,65.0490,1003.6406,3);
SetPlayerPos(playerid, 246.4716,70.0103,1003.6406);
cp2[playerid] = 1;
cp1[playerid] = 0;
}
else if(cp2[playerid] == 1)
{
// Do something
}