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_defuse CT » AmxModX
| |
 RSS
  • OnLine

    : 5
    : 4
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 16-08-2011, 13:19 : 2301

    cs_get_user_defuse CT

    cs_get_user_defuse - .
    , .

    cstrike.inc:
    /* Returns 1 if user has a defuse kit. */
    native cs_get_user_defuse(index);


    :
    cs_get_user_defuse ( index )

    1 - .
    0 - .

    :
    /* Plugin generated by AMXX-Studio */

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

    #define PLUGIN "Get user defuser"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_clcmd("say /defuser","get_defuser_info")
    }
    public get_defuser_info(id)
    {
        
        new defuser[33]
        defuser[id] = cs_get_user_defuse(id)    
        
        if(defuser[id] == 1){
            set_hudmessage(0, 200, 0, 0.05, 0.65, 2, 0.02, 30.0, 0.03, 0.3, 2)
            show_hudmessage(0, "You have defuser")
            }else{
            set_hudmessage(0, 255, 0, 0.05, 0.65, 2, 0.02, 30.0, 0.03, 0.3, 2)
            show_hudmessage(0, "You don't have defuser")
        }
    }


    :
    say /defuser, get_defuser_info, .

    if(defuser[id] == 1) - else ( ) .
    , .
    .
    cs_get_user_defuse CT