SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

, » AmxModX
| |
 RSS
  • OnLine

    : 6
    : 5
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 28-09-2011, 08:34 : 10648

    ,

    : " , N ?"
    , .

    :
    plugin_init
    register_event
    register_cvar
    register_clcmd - , .
    get_cvar_num
    client_print - .


    :

    , .

    , :
    1. , :

      • 1

    2. ,
    3. , ,
    4. , ,

    , ? ? .
    - .

    , , , . .
    1. ( - , )
    2. , , : ,
      • : ,
      • : , ..



    , ? pawn , , .

    :
    - register_event, plugin_init.
    , register_cvar, register_clcmd .

    :


    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "Restriction of usage of function on rounds"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    //
    new g_Round_counter

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR) //

        register_event("HLTV", "RoundStart", "a", "1=0", "2=0")
        register_cvar("amx_f_every_rounds","3")
        register_clcmd("say /test","Counter_check")
        
        g_Round_counter = get_cvar_num("amx_f_every_rounds")
    }
    }


    , .
    ,
    public RoundStart(){
        //g_Round_counter++ g_Round_counter = g_Round_counter + 1
        g_Round_counter++
    }


    , say /test.
    :
    , ( ..). , . 3 ( ).

    , , , , .

    public Counter_check(id){
        
        if(g_Round_counter >= get_cvar_num("amx_f_every_rounds")){
            
            //add you code
            //

            //
            client_print(id,print_chat,"Exec you function")
            
            g_Round_counter = 0
        }else{
        
            //add you code
            //
            
            //
            client_print(id,print_chat,"To use function wait %d rounds",get_cvar_num("amx_f_every_rounds")-g_Round_counter)
        }
    }

    client_print(id,print_chat,"Exec you function")


    my_function(id)

    .
    : .

    , :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "Restriction of usage of function on rounds"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    new g_Round_counter

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_event("HLTV", "RoundStart", "a", "1=0", "2=0")
        register_cvar("amx_f_every_rounds","3")
        
        register_clcmd("say /test","Counter_check")
        
        g_Round_counter = get_cvar_num("amx_f_every_rounds")
    }
    public RoundStart(){
        g_Round_counter++
    }
    public Counter_check(id){
        
        if(g_Round_counter >= get_cvar_num("amx_f_every_rounds")){
            
            //add you code
            //

            //
            client_print(id,print_chat,"Exec you function")
            
            g_Round_counter = 0
        }else{
        
            //add you code
            //
            
            //
            client_print(id,print_chat,"To use function wait %d rounds",get_cvar_num("amx_f_every_rounds")-g_Round_counter)
        }
    }


    :
    , , , :
    1. new g_Round_counter

    2. plugin_init :
        register_event("HLTV", "RoundStart", "a", "1=0", "2=0")  register_cvar("amx_f_every_rounds","3")  register_clcmd("say /test","Counter_check")  g_Round_counter = get_cvar_num("amx_f_every_rounds")

      , . -, .
    3. : plugin_init, 20 .
      public RoundStart(){
          g_Round_counter++
      }

      ,
      g_Round_counter++
      , {
    4. , , , :
          if(g_Round_counter >= get_cvar_num("amx_f_every_rounds")){

              
              g_Round_counter = 0
          }else{
          
              client_print(id,print_chat,"To use function wait %d rounds",get_cvar_num("amx_f_every_rounds")-g_Round_counter)
          }

      , , ,
      if(g_Round_counter >= get_cvar_num("amx_f_every_rounds")){
      g_Round_counter = 0
      }else{

    , , .
    , .
    .
    ,
    arwel

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    , . . , ?
    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    :
    :
    --------------------
    arwel

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    wink

    ?
    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    ? ?
    . , .
    --------------------
    arwel

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    zombie_plague 3 . , , - . , .

    . . .

    , wink - . .
    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    .
    , , .
    , .
    --------------------
    arwel

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    . :) ...
    pokibob

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    ) =)
    Greenberg

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    ///
    ???


    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    Greenberg, .
    .

    .
    --------------------

    , , .