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

is_user_admin » AmxModX
| |
 RSS
  • OnLine

    : 6
    : 4
    : -
    : crawl Bot, Yandex Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 23-08-2011, 17:36 : 8098

    is_user_admin

    VIP`, ,vip ?
    , is_user_admin. get_user_flags, .

    amxmisc.inc:
    stock is_user_admin(id)
    {
        new __flags=get_user_flags(id);
        return (__flags>0 && !(__flags&ADMIN_USER));
    }


    :
    is_user_admin ( id )
    • id - id .


    :

    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <fun>

    #define PLUGIN "Open help MODT window"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

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

        register_clcmd("say /admincmd","admin_cmd")

    }
    public admin_cmd(id){

        if(is_user_admin(id)){ //
        
            new health[32],name[32]
            set_user_health(id, (get_user_health(id)+100))
            health[id] = get_user_health(id)
            get_user_name(id,name,31)
            
            set_hudmessage(0, 255, 0, 0.05, 0.50, 0, 6.0, 12.0)
            show_hudmessage(id, "Admin %s have %d hp",name,health[id])
            
        }else{ // , :

            set_hudmessage(255, 0, 0, 0.05, 0.50, 0, 6.0, 12.0)
            show_hudmessage(id, "Xa xa xa, Tbl He agMuH")
            
        }
    }



    :
    , .
    , HuD . .
    , :
    , , ( else)

    , .
    , ( ) , get_user_flag

    , , . cmd_access.
    , .

    :
    , ( ), , , - . :)
    , .
    .
    is_user_admin