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

cvar_exists » AmxModX
| |
 RSS
  • OnLine

    : 2
    : 1
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 1-12-2011, 02:19 : 1716

    cvar_exists

    , , , .
    GunGame.

    amxmodx.inc:
    /* If a cvar exists returns 1, in other case 0 */
    native cvar_exists(const cvar[]);


    :
    cvar_exists ( const cvar[] )

    • const cvar[] -


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[amxmodx.inc] cvar_exists"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {

        register_plugin(PLUGIN, VERSION, AUTHOR)

        register_concmd("cmd_to_msg","cmd_to_msg")
        
        //register_cvar("test","1")

        if(cvar_exists("test")){
            server_print("Cvar exist")
        }else{
            server_print("Cvar not exist")
        }
    }


    :
    , .
    .
    register_cvar("test","1")
    , .

    .
    , .
    .
    cvar_exists