SetPlayerRaceCheckpoint
#2

and the problem is?

https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint

pawn Код:
//my frist checkpoint
SetPlayerRaceCheckpoint(playerid,3,1775.46765137,-2593.12890625,12.81182575,1474.51684570,-2592.75708008,12.81182575,10.0);
PilotCheckpoint[playerid]=1;

//the nwhen it gets picked up
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(PilotCheckpoint[playerid]==1)
    {
    SetPlayerRaceCheckpoint(playerid,3,1474.51684570,-2592.75708008,12.81182575,1341.51184082,-2620.22851562,61.48181915,10.0);
        PilotCheckpoint[playerid]=2;
    }
if(PilotCheckpoint[playerid]==2)
    {
        SetPlayerRaceCheckpoint(playerid,3,1341.51184082,-2620.22851562,61.48181915,nextcpx,nextcpy,nextcpz,10.0);
        PilotCheckpoint[playerid]=3;
    }
//ETC....

//last checkpoint

SetPlayerRaceCheckpoint(playerid,4,lastcpx,lastcpy,lastcpz,lastcpx,lastcpy,lastcpz,10.0);
        PilotCheckpoint[playerid]=0;
Reply


Messages In This Thread
SetPlayerRaceCheckpoint - by park4bmx - 18.07.2011, 18:35
Re: SetPlayerRaceCheckpoint - by Donya - 18.07.2011, 18:39
Re: SetPlayerRaceCheckpoint - by Vince - 18.07.2011, 18:41
Re: SetPlayerRaceCheckpoint - by park4bmx - 18.07.2011, 18:41
Re: SetPlayerRaceCheckpoint - by Donya - 18.07.2011, 18:41
Re: SetPlayerRaceCheckpoint - by park4bmx - 18.07.2011, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)