14.01.2013, 12:29
Quote:
|
Код:
SetPlayerCheckpoint(playerid, Float:X, Float:Y, Flaot:Z, Float:Distance, color = 0); |
pawn Код:
new Checkpoint:point;
//.. some codes
point = SetPlayerCheckpoint(playerid, Float:X, Float:Y, Flaot:Z, Float:Distance);
public OnPlayerEnterCheckpoint(playerid,checkpointid);
{
if(checkpointid == point)
{
// some codes
}
return 1;
}
// also some function like
SetCheckpointColor(checkpointid,color);
SetCheckpointDistance(checkpointid,float:Distance);
DisablePlayerCheckpoint(playerid,checkpointid);
// this will make that player could have multiple checkpoints :) needed some times


