22.02.2009, 04:30
Use CMAdd and under OnPlayerEnterCheckPoint, add this code.
Then you can check if the id's equal whatever returned by CMAdd. So like this.
pawn Код:
new id=CMGetCheckID(playerid);
pawn Код:
//At the top
new CP;
//OnGameModeInit or wherever
CP = CMAdd(/* the stuff in here */);
//OnPlayerEnterCheckpoint
new id=CMGetCheckID(playerid);
if(id == CP)
{
//Do your thing here.
}