[Ajuda] spawnar to all
#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


Messages In This Thread
spawnar to all - by Ericoo - 10.02.2017, 17:25
Re: spawnar to all - by FallweN - 10.02.2017, 18:02
Re: spawnar to all - by Ericoo - 10.02.2017, 18:38
Re: spawnar to all - by Ericoo - 10.02.2017, 18:41
Re: spawnar to all - by Cheleber_Pausini - 10.02.2017, 20:19

Forum Jump:


Users browsing this thread: 3 Guest(s)