Results 1 to 4 of 4

Thread: counting function + loop =) help

  1. #1
    Private
    Join Date
    Jul 2016
    Posts
    47
    Thanks
    0
    Thanked 1 Time in 1 Post

    counting function + loop =) help

    i wanna make function that count if there are 2 players axis and one 0 allies
    if so make new round

  2. #2
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    PHP Code:
    calcNumOnTeam(team)
    {
        
    arrayteam = [];
        
    players getentarray("player""classname");

        for(
    0players.sizei++)
        {
            if(
    isDefined(players[i].pers["team"]) && players[i].pers["team"] == team)
                
    arrayteam[arrayteam.size] = players[i];
        }

        return 
    arrayteam.size;

    PHP Code:
    if (calcNumOnTeam("axis") == && calcNumOnTeam("allies") == 1)
    {
    // whatever

    Last edited by voron00; 14th September 2016 at 19:17.
    sudo apt-get rekt

  3. #3
    Private
    Join Date
    Jul 2016
    Posts
    47
    Thanks
    0
    Thanked 1 Time in 1 Post
    thank you i love you last small help how to remove hud image from the screen of cod?

  4. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Find the hud, then disable it.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

Posting Permissions

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