aaaaaaaaaaaaah de sahla fash5 ya 3am ...
Code:
foreach (Client.GameState Player in Kernel.Gamepool.Values)
{
if (player.Entity.MapID == //Team Arena)
{
Player.Entity.Teleport(PreviousMap, PreviousX, PreviousY);
}
}
7ot de fel void eli hwa byt3melo call lama el Team byksab .. bas kda
There is better way of Handling this ..when Team Leader Assign For Team Arena Match Add the Players of Both Teams Into Dictionery ... and then Make ..
Code:
foreach (Client.GameState Player in Kernel.TeamArena.Values)
{
Player.Entity.Teleport(PreviousMap, PreviousX, PreviousY);
}
Getting values from TeamArena Dictionery is Faster than getting it in GamePool Dictionery as GamePool Dictionery contains all Online players so it would take longer in getting values
7asis enak msh htfham 7aga bas eshta ya3ny 7awel