players alive plugin
hi all
i liked advanced hud plugin but it wont work for me :S
i have server addon installed
and i want to get players alive plugin in hardcore mod S&d
pls give me that plugin and thx
Code:
public int alivecount = 0;
public int realalive = 0;
public void livestats()
{
int countallies = 0;
List<ServerClient> clients;
clients = GetClients();
if (clients != null)
{
if (clients.Count > 0)
{
foreach (ServerClient client in GetClients())
{
if (client.Ping == 999)
continue;
if (client.Other.isAlive == true)
{
if (client.ConnectionState != ConnectionStates.MapLoading)
{
if (client.ConnectionState != ConnectionStates.Connecting)
{
if (client.ConnectionState != ConnectionStates.Zombie)
{
if (client.Team == Teams.Allies)
{
countallies += 1;
}
}
}
}
}
}
}
}
if (countallies != alivecount)
{
alivecount = countallies;
realalive = alivecount;
}
}
Use it and change allies to axis if you need
Use 'realalive_allies' and _axis
thx alot
but i cant transfert it to .dll
pls if u can compile it to me i want just put it in /plugins
and thx
JayDi... this guy ugh. He meant to put it for 4D1, as he pm'd me there with a link here saying you helped him and needs the compiled version. Whatever long story short' he needed an IW5M version not SA. I'll deal with it.
Lock down forums to prevent us!