Results 1 to 10 of 29

Thread: best player map

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    Quote Originally Posted by malyczolg View Post
    hi , thanks work
    but if i have 100exp bot have 200exp l'm on the dvar
    Who can help me?
    Because your script is totally wrong. The biggest mistake is the waiting in the 'for' cycle. Try this, it causes the result you'd like to see: (not tested!)
    PHP Code:
    checkStatus()
    {
        
    level.brakdanych "^1BRAK DANYCH";
        
    first = [];
        
    first["player"]    = undefined;
        
    first["name"]    = level.brakdanych;
        
    first["exp"]    = level.brakdanych;
        
    first["rank"]    = level.brakdanych;

        
    players getEntarray("player""classname");
        for (
    0players.sizei++)
        {
            
    player players];

            if (! 
    isDefined(player.pers["team"]) || player.pers["team"] == "spectator")
                continue;

            if (! 
    isDefined(first["player"]) || player.sexp first["exp"])
            {
                
    first["player"] = player;
                
    first["name"] = player.name;
                
    first["exp"] = player.sexp;
                
    first["rank"] = player.poziom;
            }
        }

        for (
    0players.sizei++)
        {
            
    player players];

            
    player setClientCvar("first_player",
                    
    "First Player: Name:" first["name"] +
                    
    " His Exp IS:" first["exp"] +
                    
    " His rank IS:" first["rank"]);
        }

    Last edited by randall; 12th July 2013 at 21:26.

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

    Ni3ls (13th July 2013)

Posting Permissions

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