Checkpoints
#2

A base:

pawn Код:
new Float:CPs[3][3] = {
{0.0, 0.0 0.0},
{0.0, 0.0 0.0},
{0.0, 0.0 0.0},
};
//in a command, for example:
SetPlayerCheckpoint(playerid, CPs[0][0], CPs[0][1], CPs[0][2], 5.0);
SetPVarInt(playerid, "CP" 0);

public OnPlayerEnterCheckpoint(playerid)
{
    new pcp = GetPVarInt(playerid, "CP");
    SetPlayerCheckpoint(playerid, CPs[pcp + 1][0], CPs[pcp + 1][1], CPs[pcp + 1][2], 5.0);
    SetPVarInt(playerid, "CP", pcp+1);
    return 1;
}
Reply


Messages In This Thread
Checkpoints - by NuggaN_ - 13.12.2010, 19:31
Re: Checkpoints - by CyNiC - 13.12.2010, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)