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

cs_get_user_submodel » AmxModX
| |
 RSS
  • OnLine

    : 5
    : 1
    : -
    : crawl Bot, Google Bot, Yandex Bot, robot Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Monstr : 28-04-2012, 17:24 : 2682

    cs_get_user_submodel

    cs_set_user_submodel / .

    cstrike.inc:
    /* Returns the submodel setting of the player.
    * If this is 1, then the user has a backpack or defuser on their model (depending on team)
    */
    native cs_get_user_submodel(index);


    :
    cs_get_user_submodel(index)

    • index -

    1 0

    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>

    #define PLUGIN "[cstrike.inc] cs_get_user_submodel"
    #define VERSION "0.1"
    #define AUTHOR "Mon[str]"


    new g_iMaxplayers;

    public plugin_init()
    {
        register_plugin(PLUGIN, VERSION, AUTHOR);
        
        //
        register_clcmd("say /get_users_submodel", "get_submodel");
        
        g_iMaxplayers = get_maxplayers();
    }

    public get_submodel(id)
    {
        new iSubModel[33];
        
        //
        for(new i = 1; i <= g_iMaxplayers; i++)
        {
            //
            if(!is_user_alive(i))
                continue;
            
            // 1 1
            if(cs_get_user_submodel(i))
                iSubModel[i] = 1;
            
            // 0
            else
                iSubModel[i] = 0;
        }
        
        //
        for(new j = 0; j < sizeof iSubModel; j++)
            console_print(id, "Index %d  Submodel %d^n", j, iSubModel[j]);
            
        return 1;    
    }
    , .
    .
    cs_get_user_submodel