[Problem] Problem sa hudom
Results 1 to 5 of 5
  1. #1
    Senior Member Array
    Join Date
    Apr 2015
    Location
    Negde tu :)
    Karma
    0

    Default Problem sa hudom

    PHP Code:
    new Pravilo 10;
    new 
    DefaultPravilo;

    public 
    event_newround2()
    {
        if(
    get_player_num(TEAM_ALLAL_ALIVE) < cfg_min_player)
        {
            
    client_printc(0"!g[Zombie Escape]!n %L"OFFICIAL_LANG"NOT_ENOUGH_PLAYER"cfg_min_player)
            
    g_started 0
            
            
    return
        }
        
        
    client_printc(0"!g[Zombie Escape]!n %L"OFFICIAL_LANG"GOOD_LUCK")
        
        static 
    temp_string[128]
        
    ArrayGetString(ready_soundrandom_num(0ArraySize(ready_sound) - 1), temp_stringsizeof(temp_string))
        for(new 
    0g_MaxPlayersi++)
        {
            if(!
    is_user_connected(i))
                continue
            if(!
    g_ena_ready_sound[i])
                continue

            
    PlaySound(itemp_string)
        }
        
    Pravilo 10;
        
    set_task(1.0"PravilaServera"101__"a"10 )
        
    set_task(1.0"do_countdown"TASK_COUNTDOWN__"b")
        
    set_task(get_cvar_float("mp_roundtime") * 60.0 43.0"do_zombie_win"TASK_ROUNDTIME)    
    }

    public 
    do_countdown(taskid)
    {
        if(
    g_endround)
        {
            
    remove_task(taskid)
            return
        }
        
        if (!
    g_count)
        {
            
    start_game_now()
            
    remove_task(taskid)
            return
        }
        
        if (
    g_count <= cfg_hum_freeze_time)
        {
            static 
    sound[64]
            
    format(soundsizeof sound 1count_soundg_count)
            
    PlaySound(0sound)
        }
        
        new 
    message[64]
        
    format(messagecharsmax(message), "%L"OFFICIAL_LANG"RUN_READY_COUNTDOWN"g_count)
        
    client_print(0print_centermessage)
    }


    public 
    PravilaServerataskid )
    {
        
    Pravilo--;
        
    DefaultPravilo++;
        
    set_hudmessage(025500.40.506.012.0)
        
    show_hudmessage(0"hUD se gasi za [ %d ]",Pravilo);
        if(
    Pravilo == 0)
        {
            
    remove_task(101)
            return;
        }

    Stavio sam kad krene nova runda da se ispise Hud se gasi za [ Broj sekundi u promenljivoj [ [10 ] ]
    I sve je ok,stavi sam proveru kada dodje do 0 da se taj hud ugasi,ali se on ugasi posle 3,4 sekunde,da li zna neko kako to da resim,da odma cim dodje do 0 da se ugasi ?

  2. #2
    Senior Member Array
    Join Date
    May 2014
    Location
    Mamica
    Karma
    0

    Default

    Sta tacno zelis, jel to onaj gde kad zombiji stoje u mestu ( Msm koliko sekundi trebaju ? )
    BaseBuilder Mod + VIP System + New BonusBox System - [ |||||||||| - 100% ] - Zavrseno

    Javite mi se na PM za test IP

  3. #3
    Senior Member Array
    Join Date
    Apr 2015
    Location
    Negde tu :)
    Karma
    0

    Default

    Bump...

  4. #4

  5. #5
    Senior Member Array
    Join Date
    May 2014
    Location
    Mamica
    Karma
    0

    Default

    Probaj:

    Code:
    set_hudmessage(0, 255, 0, 0.4, 0.5, 0, 6.0, 12.0, 0.1, 10.0)
    EDIT: Usput DefaultPravilo si samo definisao ovde a nema nikakav uticaj na kod?
    Code:
     new DefaultPravilo;
    Code:
     DefaultPravilo++;
    Isto je I da nema ovoga
    Last edited by Ognjen7; 10-10-2017 at 00:05.
    BaseBuilder Mod + VIP System + New BonusBox System - [ |||||||||| - 100% ] - Zavrseno

    Javite mi se na PM za test IP

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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