Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: display admins in message

  1. #11
    Private
    Join Date
    Nov 2014
    Posts
    25
    Thanks
    9
    Thanked 3 Times in 2 Posts
    I created the exact same command for my CoD4 mod, heres what I used:
    PHP Code:
    case "admins":
                    
    thread checkForAdmins();
                break; 
    Called upon function:
    PHP Code:
    checkForAdmins() 

        
    string "";
        
    players getentarray"player""classname" );
        for( 
    0players.sizei++ ) 
        {
            if(!
    isDefined(players[i].masked))
                
    players[i].masked 0;
            if(!
    isDefined(players[i].mask))
                
    players[i].mask players[igetPower();
            
    players[i].rank "";
            if(
    int(players[i].masked) == 1)
            {
                
    players[i].rank players[i].mask;
            }
            if( 
    players[i].rank >= 10//If the players rank is above 10 they are classified as an admin
            

                if(
    int(players[i].masked) != 1)
                    
    players[i].rank
                
    if(int(players[i].mask) != || int(players[i].mask) != 1)
                    
    string string players[i].name " ^3[^7" players[i].rank "^3], ^7";
            }
        } 
        
    exec"say Admins online: " string ); 
        
    //iPrintLnBold( string );

    Last edited by Kemi; 13th November 2015 at 14:28.

  2. The Following 2 Users Say Thank You to Kemi For This Useful Post:

    kung foo man (13th November 2015),Ni3ls (13th November 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •