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_vip vip » AmxModX
| |
 RSS
  • OnLine

    : 6
    : 5
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 29-11-2011, 19:20 : 2989

    cs_get_user_vip vip

    , VIP VIP , VIP` as_*.
    , .
    , id .

    cstrike.inc:
    /* Is user vip? Returns 1 if true, 0 if false.
    */
    native cs_get_user_vip(index);


    :
    cs_get_user_vip(id)

    • id - . 1 VIP 0 .


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

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

    #define PLUGIN "[cstrike.inc] cs_get_user_vip"
    #define VERSION "1.0"
    #define AUTHOR "Admin"


    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_concmd("vip_players","f_vip_players")
    }
    public f_vip_players(){
        
        new maxplayers = get_maxplayers()

        new name[32],players,vips
        
        for (new i=1; i<=maxplayers; i++){
            if(is_user_connected(i)){
            
                get_user_name(i,name,31)
                if(cs_get_user_vip(i)){
                
                    server_print("Player: %s is vip",name)
                    vips++
                }else{
                
                    server_print("Player: %s no vip",name)
                }
                players++
            }
        }
        server_print("All players:%d and %d vips",players,vips)
    }


    :
    , .
    .

    , , .
    vip_players, . id .

    , .
    , .
    .
    cs_get_user_vip vip