18.12.2010, 12:47
pawn Код:
new cpcount=0;
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid==/*you ch id*/)
{
cpcount++;
if(cpcount==5)
{
//...
}
//...
}
return 1;
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
if(checkpointid==/*you ch id*/)
{
cpcount--;
//...
}
return 1;
}