You don't haven't understand.. з_з
pawn Код:
//above OnGameModeInit()
new Text:Evacplayers;
new Text:Allevacplayers;
new Text:Evacplayerl;
new Text:Evacnexus;
new text_classification[5]=
{
Text:Evacplayer1,
Text:Evacplayer2,
Text:Evacplayer3,
Text:Evacplayer4,
Text:Evacplayer5
};
new classifications[MAX_PLAYERS][5];
//OnGameModeInit()
new evac_cp_id = CreateDynamicCP(x,y,z,3.5,-1,-1,-1,100.0); // You must change coords where x,y,z.
//OnPlayerEnterDynamicCP(playerid, checkpointid)
if(checkpointid == evac_cp_id){
if(team[playerid] == TEAM_HUMAN)
{
new string[256];
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,963.9642,-53.1761,1001.1246);
format(string,sizeof(string), ""chat""COL_YELLOW" %s made it to evacuation point and has received 3 Coins and 300 XP!",PlayerName(playerid));
SendClientMessageToAll(-1,string);
DisablePlayerCheckpoint(playerid);
CurePlayer(playerid);
GivePlayerXP(playerid,300);
pInfo[playerid][pEvac]++;
pInfo[playerid][pCoins] += 3;
SetPlayerColor(playerid,COLOR_YELLOW);
TextDrawSetString(Evacplayers,"5 Players that reached Evac:");
TextDrawSetString(Allevacplayers,"Player: 1 Player: 2 Player: 3 Player: 4 Player: 5");
for(new i = 0; i < 5; i++){
if(classifications[playerid][i] != 0)continue;
classifications[playerid][i] += 1;
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
TextDrawSetString(text_classification[i],pname);
TextDrawSetString(Evacplayerl,"------------------------------------------");
break;
}
TextDrawSetString(Evacnexus,"Nexus Apocalypse");
}
}
return 1;
}