03.12.2014, 04:44
pawn Код:
//create a checkpoint with steamer plugin and add a callback OnPlayerEnterDynamicCP(playerid, checkpointid);
//instead of OnPlayerEnterCheckpoint();
new text_classification[5] = {
Text:Evacplayer1,
Text:Evacplayer2,
Text:Evacplayer3,
Text:Evacplayer4,
Text:Evacplayer5
};
new classifications[MAX_PLAYERS][5];
//OnPlayerEnterDynamicCP(playerid, checkpointid);
if(checkpointid == evac){
for(new i = 0; i < 5; i++){
if(classifications[playerid][i] != 0)continue;
classifications[playerid][i] += 1;
TextDrawSetString(text_classification[i],PlayerName(playerid));
break;
}
}