Results 1 to 10 of 29

Thread: best player map

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts

    best player map

    hello , why first_player_name is not defined

    PHP Code:
    callback_playerconnect()
    {
    .....
        
    self thread checkstatus();

    PHP Code:
    checkstatus()
    {
        
    level.brakdanych = &"^1BRAK DANYCH";

        
    players getentarray("player""classname");
        
    highexp undefined;
        
    name undefined;
        
    highrank undefined;
        

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

            if(
    isdefined(player.pers["team"]) && player.pers["team"] == "spectator")
                continue;

            if(!
    isdefined(highexp))
            {
                
    highexp player.sexp;
                
    name player.name;
                
    highrank player.poziom;
                continue;
            }
            
            
            
    wait 0.01;
            
            if(
    isDefined(name))
                
    first_player_name name;
            else
                
    first_player_name level.brakdanych;
                
            if(
    isDefined(highexp))
                
    first_player_exp highexp;
            else
                
    first_player_exp level.brakdanych;
                
            if(
    isDefined(highrank))
                
    first_player_rank highrank;
            else
                
    first_player_rank level.brakdanych;
            
            
    wait 3;
                
            
    players[iiprintlnbold("name is" name +"fp name is" first_player_name);

            if(
    isdefined(first_player_name))
                
    players[isetClientCvar("first_player""First Player: Name:" first_player_name "His Exp IS:" first_player_exp "His rank IS:" first_player_rank);
             else
                
    players[isetClientCvar("first_player""First Player: Name:" "BRAK DANYCH" "His Exp IS:" +"BRAK DANYCH" "His rank IS:" "BRAK DANYCH");
            
        }    

    Last edited by malyczolg; 11th July 2013 at 15:48.

Posting Permissions

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