Код
public AnnounceWinner()
{
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
if(PlayerInfo[playerid][pFreeMode] > 0)
{
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~ The server has~g~ changed map", 3000, 3);
}
if(PlayerInfo[playerid][pFreeMode] < 1)
{
Arena[ID] ++;
SendClientMessageToAll(0xC3C3C3AA,"Пожалуйста подождите... Идет подготовка к смене карты.");
TogglePlayerControllable(playerid, 0);
SetTimer("ChangeRound",1000,0);
//SetPlayerCameraPos(playerid,-1438.0342,1751.5375,45.6543);
//SetPlayerCameraLookAt(playerid,-1736.0754,1132.5067,45.6543);
SetPlayerInterior(playerid,0);
}
}
return 1;
}
Код
public ChangeRound()
{
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
if(PlayerInfo[playerid][pFreeMode] > 0)
{
GameTextForPlayer(playerid, "~n~~g~ Free Mode", 3000, 4);
SetPlayerPos(playerid, 2781.0310,-2458.1184,13.6353);
}
if(PlayerInfo[playerid][pFreeMode] < 1)
{
TogglePlayerControllable(playerid, 1);
SpawnPlayer(playerid);
switch(Arena[ID])
{
case 0://Карта № 1 Подвал [Интерьер]
{
SetPlayerInterior(playerid,1);
}
case 1:
{
SetPlayerInterior(playerid,1);
Arena[ID] = 0;
}
}
}
}
return 1;
}
Попробуйте может быть будет работать