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

pev_valid » AmxModX
| |
 RSS
  • OnLine

    : 5
    : 4
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 6-11-2011, 18:49 : 4548
    , , .
    pev_valid.

    fakemeta.inc:
    /**
    * Checks the validity of an entity.
    *
    * @param entindex        The entity id to check.
    *
    * @return            0 on invalid entity
    *                1 on entity is valid
    *                2 on entity is valid and it has private data (safe to use pdata natives on).
    */
    native pev_valid(entindex);


    :
    • entindex - id ( ) 0 ,1 ,2 pvPrivateData .


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>

    #define PLUGIN "[fakemeta.inc] pev_valid"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {

        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_clcmd("say /ent_valid","entity_valid")

    }
    public entity_valid(id){

        //
        new valid_entity = pev_valid(id)
        new no_valid_entity = pev_valid(999999)

        //
        client_print(id,print_chat,"Entity valid (you) %s",valid_entity ? "Yes" : "No")
        client_print(id,print_chat,"Entity no valid (999999) %s",no_valid_entity ? "Yes" : "No")

    }


    :
    say /ent_valid, ( ) .
    2 valid_entity no_valid_entity, id , id 999999 ( )
    , - Yes/No .
    , .
    .
    pev_valid
    asd12345678184

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    Engine
    is_valid_ent(id)

    , , .