Results 1 to 10 of 10

Thread: [CoD UO] separate teams in scoreboard

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Quote Originally Posted by killersmiley View Post
    habe mal neh frage ich bastel grade für call of duty uo ein neues scoreboard.menu klabt auch alles wunder bar mir werden alle player in mein menu an gezeigt doch ich mochte das gerne so haben das die allies oben auf gelistet sind und die axis unden bei mir werden die player unten und oben angezeit doch das sind nicht die player die im richtigen team sind da werden alle an gezeit die auf dem server drauf sind habt ihr ein plan wie ich das ändern kan
    Hallo, und wilkommen @ Killtube

    please edit your question and change the language from (bad) german to proper english,
    so non german speakers (the majority) will also help you.

    To your problem:

    you're fetching ALL players in this line: players = getentarray("player", "classname");
    you should rewrite your script and compare the actual team of each individual player:

    PHP Code:
    axisPlayers = [];
    alliedPlayers = [];

    players getEntArray"player" "classname" );

    for( 
    players.size i++ )
    {
        
    player players[i];

        if( !
    isDefinedplayer.pers["team"] ) )
            continue;

        if( 
    player.pers["team"] == "axis" )
        {
            
    axisPlayers[axisPlayers.size] = player;
        }
        else if( 
    player.pers["team"] == "allies" )
        {
            
    alliedPlayers[alliedPlayers.size] = player;
        }

    now you can work with an array for each team.

  2. The Following User Says Thank You to serthy For This Useful Post:

    kung foo man (28th March 2016)

Posting Permissions

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