2 cp's ...? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 cp's ...? (
/showthread.php?tid=169688)
2 cp's ...? -
HardstylerNiko - 20.08.2010
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
Re: 2 cp's ...? -
ScottCFR - 20.08.2010
You need a checkpoint streamer. Even though only one is running at a time, it still won't show.
Re: 2 cp's ...? -
HardstylerNiko - 20.08.2010
aw... okay, thanks
Re: 2 cp's ...? -
Sky4D - 20.08.2010
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
}