Jump to content



Logo

Bun venit pe IceGame Romania @ Winter Is Coming


Autentificare 

Creează cont
Bine ati venit pe IceGame Romania ! Comunitatea IceGame isi doreste sa devina cel mai indragit forum de gaming si nu numai, exclusiv pentru romani. Daca si tu iti iubesti tara si vrei sa ajuti la dezvoltarea singurului forum dedicat Romanilor de pretutinderi, alatura-te noua ! Nu trebuie decat sa te inregistrezi si poti avea access la toate optiunile acestui forum, cum ar fi:
  • Creeaza topic-uri sau raspunde la unele deja creeate
  • Aboneaza-te la topic-urile care iti plac si primesti informatii pe email
  • Creeaza-ti propria pagina de profil si fa-ti prieteni
  • Trimite mesaje la alti membri
Photo

VIP Free Problem

- - - - -

  • This topic is locked This topic is locked
3 replies to this topic

#1
Iulian

Iulian

    Advanced Member

  •   Group:
    Manager Server
  •   Posts:
    70
  •   Member Number:
    1370
  •   Reputation:
    2
  • Salut, am vrut sa adaug pe server V.I.P Free pentru cateva zile si am gasit acest plugin si cand am pus sa fie orele 10:00 / 23:00 nu functioneaza, am dat si restart la server dar tot asa. :12:

     

    ADMIN_LEVEL_F = Flagul 'R'

    #include <amxmodx>
    #include <hamsandwich>
    
    #define PLUGIN "Free VIP"
    #define VERSION "0.1"
    #define AUTHOR "Nush"
    
    new g_FreeVip[33];
    new g_Time_1, g_Time_2
    
    public plugin_init()
    {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    g_Time_1 = register_cvar("free_vip_time_from", "23")
    g_Time_2 = register_cvar("free_vip_time_to", "11")
    
    RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
    
    }
    
    public fwHamPlayerSpawnPost(id)
    {
    new szTime[3]
    get_time("%H",szTime,2)
    
    new Time_1 = get_pcvar_num(g_Time_1)
    new Time_2 = get_pcvar_num(g_Time_2)
    
    new iTime = str_to_num(szTime)
    if( 20 <= iTime <= 24 )
    {
    if( !(get_user_flags(id) & ADMIN_RESERVATION) )
    {
    remove_user_flags(id, ADMIN_USER);
    set_user_flags(id, ADMIN_LEVEL_F);
    g_FreeVip[id] = true;
    set_hudmessage( 255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1 );
    show_hudmessage ( id, "You get FREE VIP from %d:00 to %d:00!", Time_1, Time_2)
    }
    }
    else if( 00 <= iTime <= 09 )
    {
    if( !(get_user_flags(id) & ADMIN_RESERVATION) )
    {
    remove_user_flags(id, ADMIN_USER);
    set_user_flags(id, ADMIN_LEVEL_F);
    g_FreeVip[id] = true;
    set_hudmessage( 255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1 );
    show_hudmessage ( id, "You get FREE VIP from %d:00 to %d:00!", Time_1, Time_2)
    }
    }
    else if( g_FreeVip[id] )
    {
    remove_user_flags(id, ADMIN_LEVEL_F);
    set_user_flags(id, ADMIN_USER);
    g_FreeVip[id] = false;
    }
    } 
    


    pctroubleshooting.ro   Robotel Anunturi



    

    #2
    Barlap

    Barlap

      Fondator # IceGame.Ro

  •   Group:
    Fondator
  •   Posts:
    2,264
  •   Member Number:
    1
  •   Reputation:
    84
  • primesti vreo eroare legata de plugin in error logs?



    #3
    Iulian

    Iulian

      Advanced Member

  •   Group:
    Manager Server
  •   Posts:
    70
  •   Member Number:
    1370
  •   Reputation:
    2
  • Nu



    #4
    Barlap

    Barlap

      Fondator # IceGame.Ro

  •   Group:
    Fondator
  •   Posts:
    2,264
  •   Member Number:
    1
  •   Reputation:
    84
  • :tc:






    0 user(s) are reading this topic

    0 members, 0 guests, 0 anonymous users

    Temă realizată de YouDead