[Ajuda] spawnar to all
#1

Bom galera, estou com um probleminha, eu queria que logo apуs:
Код:
 EndRoundForAll() // OK!
{   
	foreach(Player, i)
	{
		if(APlayerData[i][pLogged])
		{
			GameTextForPlayer(i, "~r~>~y~Fim do Round~r~<", 4000, 6);
			if(Duelo[i] == 998 && GetPlayerVirtualWorld(i) == 0 && AFK[i] == false && OnTDM[i] == false && ArenaDeagle[i] == false && ArenaRunning[i] == false && ArenaWar[i] == false && ArenaSniper[i] == false)
			{
				TogglePlayerControllable(i, 0);
			}
		}
	}
}
queria que logo apуs que o round terminasse todos os players fossem spawnados, tentei de tudo aqui sempre da erro.

variavel: SpawnPlayer
Reply
#2

PHP код:
EndRoundForAll() // OK!
{   
    foreach(
Playeri)
    {
        if(
APlayerData[i][pLogged])
        {
            
GameTextForPlayer(i"~r~>~y~Fim do Round~r~<"40006);
            if(
Duelo[i] == 998 && GetPlayerVirtualWorld(i) == && AFK[i] == false && OnTDM[i] == false && ArenaDeagle[i] == false && ArenaRunning[i] == false && ArenaWar[i] == false && ArenaSniper[i] == false)
            {
                
TogglePlayerControllable(i0);
                
SpawnPlayer(i);
            }
        }
    }

Reply
#3

coloquei e nгo funcionou
Reply
#4

Код:
 format(String, 65, "» Foram contabilizados {FFFFFF}%d {66FF66}kills neste round!", sKills);
	SendClientMessageToAll(0x66FF66FF, String);

	UpdateRanks();

	sKills = 0;

	if(rKills[bestplayer] > 0)
	{
		GameTextForPlayer(bestplayer, "~g~Victory!", 3000, 1);
		format(String, 65, "» %s venceu o round com %d kills.", pName[bestplayer], rKills[bestplayer]);
		foreach(new win : Player)
		{
			rKills[win] = 0;
		}
	}
	else
		format(String, 65, "» Nгo temos um vencedor neste round.", pName[bestplayer], rKills[bestplayer]);
	SendClientMessageToAll(0xDDDD44FF, String);
    KillTimer(TimerRound);
	Starting = SetTimer("Start", 5000, false);

	foreach(Player, i)
	{
	    if(APlayerData[i][pLogged])
	    {
			Votou[i] = false;
			rKills[i] = 0;
		}
	}
	cRound++;
	return 1;
}

EndRoundForAll() // OK!
{   
	foreach(Player, i)
	{
		if(APlayerData[i][pLogged])
		{
			GameTextForPlayer(i, "~r~>~y~Fim do Round~r~<", 4000, 6);
			if(Duelo[i] == 998 && GetPlayerVirtualWorld(i) == 0 && AFK[i] == false && OnTDM[i] == false && ArenaDeagle[i] == false && ArenaRunning[i] == false && ArenaWar[i] == false && ArenaSniper[i] == false)
			{
				TogglePlayerControllable(i, 0);
				SpawnPlayer(i);
			}
		}
	}
}
cуdigo completo
Reply
#5

Usa SetSpawnInfo antes de SpawnPlayer(i);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)