ItsMods

Full Version: delete
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How remove immune players fromAll thanks, the list?

As here in an example. http://www.itsmods.com/forum/Thread-Rele...9#pid69969
PHP Code:
string immunePlayersXUID GetServerCFG("VOTEKICK""immunePlayers_xuid"""); 


PHP Code:
//remove inactive and immune players from the list 
if ((player.Ping 999) && (player.Ping 0) && !(immunePlayers.Contains(player.XUID))) 

TellClient(Client.ClientNum"^2" player.ClientNum " ^0- " "^3" player.Nametrue); 
validPN.Add(player.ClientNum); Thread.Sleep(1000); 





How as to make here?
PHP Code:
//fetches the playerinfo of the entered player, or all players
        
void playerInfo(String MessageServerClient issuer)
        {
            
System.Collections.Generic.List<ServerClientclientList GetClients();
            
Char[] delimit = { ' ' };
            
String[] split Message.Split(delimit);
            
String name "";
            for (
int i 1split.Lengthi++)
            {
                
name += split[i];
                if (
1)
                {
                    
name += " ";
                }
            }
            if (
split.Length == 1)
            {
                
Thread statusThread = new Thread(new ParameterizedThreadStart(statusAll));
                
statusThread.Start(issuer);
                return;
            }
            foreach (
ServerClient currClient in clientList)
            {
                if (
currClient.Name.ToLower().Contains(name) || name=="")
                {
                    if (
currClient.Name != "")
                    {
                        
TellClient(issuer.ClientNum"^1Name: " currClient.Name " ^2Clientnum: " currClient.ClientNum " ^3XUID:" currClient.XUID " ^1Warnings: " warner.getWarnings(currClient) + " ^4Group:" 
                            
bouncer.getUserGroup(currClient.XUID), true);
                    }
                
                 }

            }
        } 


in sv_config
Code:
[ServerAdmin] immunePlayers_xuid=xuid1,xuid2
Thanks!

question is solved.
-------------
Code:
Thread.Sleep(0x2BC);

Nice decompiling, brah.
In your post i see:
CSHARP Code
  1. string immunePlayersXUID = GetServerCFG("VOTEKICK", "immunePlayers_xuid", "");


and after that i see:
CSHARP Code
  1. [ServerAdmin]
  2. immunePlayers_xuid=xuid1,xuid2


In the first block of code, you get the 'immunePlayers_xuid' from 'VOTEKICK', but in the sv_... you store them in '[ServerAdmin]'...
Is it a mistake???
---------------
Why you deleted your post? It can not be helpfull for someone else? Or you don't want people to know that you ask for help?
(01-11-2013, 12:17)SirGravzy Wrote: [ -> ]wow, thanks for deleting dick..

Stop posting rage messages everywhere....
(01-11-2013, 12:17)SirGravzy Wrote: [ -> ]wow, thanks for deleting dick..

Mainpost has been restored. Closing thread now.