Back to Piciul- [Legacy 3554]'s profile
Piciul- [Legacy 3554]

Posts by Piciul- [Legacy 3554]

933 posts

  1. #641
  2. #642
  3. #643
  4. #644
  5. #645
  6. #646
    [Support] Cerere plugin
    Reply in Technical Support

    Happy.amxx --> http://www20.zippyshare.com/v/o47IbVSX/file.html

    Happy.sma---> http://www20.zippyshare.com/v/FNzL4U3l/file.html

     

    zp_happyinit 19  Aici scrii ora de la cât vrei să înceapă evenimentu'

    zp_happyend 23  Aici scrii scrii la ce oră vrei să se termine evenimentu' 

    zp_happyhour 1  Laşi 1 ca pluginul să rămână activat.

    /

    /

    /

    /

    
    #include <amxmodx>
    #include < amxmisc >
    
    const TASK_ID = 258;
    
    new h;
    new task_set = 0;
    
    public plugin_init()
    {
          register_plugin("Dam astora vip", "1.0", "cybyer")
    }
    
    public client_putinserver(id)
    {
          new o, m, s;
          time(o, m, s)
          if(o >= 00 && o < 08)
          {
                if( get_user_flags(id) != read_flags("t") || !( get_user_flags( id ) & ADMIN_LEVEL_H ) )
                {
                   set_user_flags(id, read_flags("t"))
                   set_task(3.0, "mesaj", id)
          	    }
    
                if( !task_set )
                {
                   set_task( 60.0, "recheck", TASK_ID, _, _, "b" ); // task pus la 1 minut pentru a functiona corect
                   task_set = 1;
                }
          }
    }
    
    public recheck()
    {
    
       time( h, _, _ );
    
       if( h >= 08 )
       {
          new iPlayers[ 32 ], iNum, i;
          get_players( iPlayers, iNum );
          
          for( i = 0; i < iNum; i++ )
          {
             remove_user_flags( iPlayers[ i ] );
          }
    
          server_cmd( "amx_reloadadmins" );
    
          remove_task( TASK_ID );
          task_set = 0;
       }
    }
    
    public mesaj(id)
    {
          client_print(id, print_chat, "Ai primit vip ca esti special pentru noi")
    }
    
  7. #647
  8. #648
  9. #649
  10. #650
  11. #651
  12. #652
  13. #653
  14. #654
  15. #655
  16. #656
  17. #657
  18. #658
  19. #659
  20. #660