ItsMods

Full Version: Players alive on hud
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Smile
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.
(01-06-2013, 17:44)DidUknowiPwn Wrote: [ -> ]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.

....
@DidUknowiPwn ... this strange ghey.
FTFY
Lock down forums to prevent us! Dumb Bitch