18.06.2014, 20:30
for checking if they're in a CP:
The size of the checkpoint:
The last parameter.
I reccomend using a streamer though. Since
Incognitos does this iirc
pawn Код:
CMD:something(playerid,params[])
{
if(IsPlayerInCheckpoint(playerid)) //they are
{
//code
}
else //they arent
{
//code
}
return 1;
}
pawn Код:
SetPlayerCheckpoint(playerid, x, y, z, size)
I reccomend using a streamer though. Since
Quote:
Checkpoints are asynchronous, meaning only one can be shown at a time. To 'stream' checkpoints (only show them when players are close enough), use a checkpoint streamer. |