2 cp's ...?
#1

I made a pickup, wich let appear a cp, but if a Player enters the 1. cp, a new one should appear.
It looks like this:
Код:
public OnPlayerEnterCheckpoint(playerid)
{
	DisablePlayerCheckpoint(playerid);
	SetPlayerCheckpoint(playerid,863.4678,2007.2075,1628.3438,2);
	}
	{
	DisablePlayerCheckpoint(playerid);
	SetPlayerCheckpoint(playerid,805.1839,2006.8567,1628.3438,2);
	return 1;
}
Can anyone correct it, please? O.o
Reply
#2

You need a checkpoint streamer. Even though only one is running at a time, it still won't show.
Reply
#3

aw... okay, thanks
Reply
#4

You could do

pawn Код:
new CheckpointID[MAX_PLAYERS] = 0;
and OnPlayerEnterCheckpoint:

pawn Код:
if(CheckpointID[playerid] == 1)
{
//effect for checkpoint #1
}
else if(CheckpointID[playerid] == 2)
{
//effect for checkpoint #2
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)