17.10.2013, 12:09
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(Bit16_Get(Checkpoint, playerid))
{
if(PlayerInfo[playerid][pDMV] == true) //neam blage koji je ID to ćemo editati
{
new cpos = Bit16_Get(Checkpoint, playerid);
if((cpos+1) < KOLICINA_CPOVA) //Kolicinu CPova ćes ti urediti u DMVCPs variabli
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, DMVCP[cpos+1][0], DMVCP[cpos+1][1], DMVCP[cpos+1][2], 5.0);
cpos++;
}
else
{
DisablePlayerCheckpoint(playerid);
// proso
}
}
}
return 1;
}