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

get_user_fps [FPS Api] » AmxModX
| |
 RSS
  • OnLine

    : 10
    : 7
    : -
    : crawl Bot, Google Bot, Google Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : StRiKeR.csF : 16-06-2013, 09:28 : 3944

    get_user_fps [FPS Api]

    : .csF Dev Team
    : 1.2

    :
    FPS , ( ).
    :
    1. get_user_fps.
    2. .
    3. plugins .
    4. plugins.ini( ).
    5. fps.inc include.
    6. #include .
    7. , fps get_user_fps(id) .

    :
    Engine

    :
    1.0b -
    1.0 - get_maxplayers() - , () // TurangaLeela
    1.1 - // TurangaLeela, fps .



    /* TurangaLeela amx-x.ru */
    #include <amxmodx>
    #include <engine>

    #define A "FPS"
    #define B "1.2"
    #define C ".csF Dev Team"

    #define TASK_ID 55055
    #define g_Maxplayers Fps[0][CONST]

    enum _:FPS_DATA
    {
    COUNT,
    CONST
    };

    new Fps[33][FPS_DATA];

    public plugin_init()
    {
    register_plugin(A, B, C);

    g_Maxplayers = get_maxplayers();
    set_task(1.0, "Clear", TASK_ID, "", 0, "b");
    }

    public plugin_natives()
    register_native("get_user_fps", "native_get_user_fps", 1);

    public native_get_user_fps(id)
    return Fps[id][CONST];

    public client_PreThink(id)
    Fps[id][COUNT]++;

    public Clear()
    {
    for(new id = 1; id <= g_Maxplayers; id++)
    {
    Fps[id][CONST] = Fps[id][COUNT]+=3;
    Fps[id][COUNT] = 0;
    }
    }

    public client_connect(id)
    Fps[id][COUNT] = 0;

    public client_disconnect(id)
    Fps[id][COUNT] = 0;


    API FPS Api:


    #include <amxmodx>
    #include <amxmisc>
    #include <fps>// fps.inc

    #define A "FPS Controler"
    #define B "1.2"
    #define C ".csF Group"
    #define TASK 9999

    new max_fps; // 2
    new task_time;

    public plugin_init()
    {
    register_plugin(A, B, C);

    register_cvar("csf_fps_control", "60"); // "csf_fps_control", , ,
    register_cvar("csf_fps_max", "101"); // "csf_fps_max", fps
    }

    public plugin_cfg()
    {
    task_time = get_cvar_float("csf_fps_control");// "csf_fps_control"
    fps_max = get_cvar_num("csf_fps_max");// "csf_fps_max"
    }

    public client_putinserver(id)
    set_task(task_time, "FpsControl", id + TASK); // "FpsControl" , "task_time" id , 9999

    public client_disconnect(id)
    remove_task(id + TASK); // ,

    public FpsControl(id)
    {
    id -= TASK; // id 9999, id
    new fps = get_user_fps(id); // fps
    if(fps > max_fps)// , fps , "max_fps",
    {
    new userid = get_user_userid(id);// , userid
    new name[32];// ,
    get_user_name(id, name, charsmax(name));//
    client_print(0, print_chat, " FPS %s , FPS: %d!", name, fps); //
    client_print(0, print_chat, " %s !", name);
    client_cmd(id, "developer 0");// developer 0
    client_cmd(id, "fps_max 101");// fps_max 101
    log_to_file("addons/amxmodx/logs/fps_control.log","Name: %s | ID: %d | SteamID: %d | IP: %d | FPS: %d", name, userid, fps) //
    server_cmd("kick #%d ^" ^"", userid);//
    }
    return PLUGIN_HANDLED;
    }


    :




    , , , get_user_fps :)
    !
    , .
    .
    get_user_fps [FPS Api]
    D34

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

    , love smile
    LAN

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

    CS 1.6 developer fps_override
    StRiKeR.csF

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

    , , , , .

    , , .