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

    : 9
    : 4
    : -
    : crawl Bot, robot Bot, Yandex Bot, Google AdSense, Yandex Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 25-10-2011, 00:08 : 3095
    , . , , .

    engine.inc:
    //SDK function - checks if an entity is visible to an entity
    native is_visible(entity, target);


    :
    is_visible ( entity, target )


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <engine>

    #define PLUGIN "[engine.inc] is_visible"
    #define VERSION "1.0"
    #define AUTHOR "Admin"


    new Ent,g_Model[] = {"models/chick.mdl"}

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_clcmd("say /chick","add_chicken")
        register_clcmd("say /vis","visible")
    }
    public plugin_precache(){
        precache_model(g_Model)
    }
    public visible(id){

        if(is_visible(id,Ent)){
        
            client_print(0,print_chat,"You see ckicken")
            
        }else{
            
            client_print(0,print_chat,"You not see ckicken")
            
        }
        
    }

    public add_chicken(id){
        
        Ent = create_entity("info_target")
        
        if(is_valid_ent(Ent)){
            
            entity_set_model(Ent, g_Model)
            entity_set_size(Ent,Float:{-6.0, -10.0, 0.0},Float:{6.0, 10.0, 18.0})
            new Float:f_Origin[3]
            entity_get_vector(id, EV_VEC_origin, f_Origin)    
            f_Origin[0] += 50.0
            entity_set_origin(Ent, f_Origin)        
            entity_set_int(Ent,EV_INT_solid,SOLID_BBOX)
        
            entity_set_float(Ent, EV_FL_takedamage, DAMAGE_YES)
            
            new Float:angles[3]
            angles[0] = 0.0
            angles[1] = 90.0
            angles[2] = 0.0

            entity_set_vector(Ent,EV_VEC_angles,angles)
            
            drop_to_floor(Ent)
        }
    }


    :
    .
    say /vis, , .

    , , . , .

    . .
    , .
    .
    is_visible
    Admin

    30.07.2011
    ICQ: 980500
    : 507
    : 333
    : -  58  +

    : , (
    , !
    --------------------
    Sonic

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

    , ?
    Chuvi

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

    : , , , .
    . "0". , 0, - , 1, .
    Valer4

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

    . is_no_visible, 0, 1
    Valer4

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

    , , , ,

    ,
    #include <amxmodx>
    #include <engine>

    public plugin_init()
    {
    register_plugin("test", "1.0", "Valer4")
    register_clcmd("say test", "test")
    }

    public test(id)
    {
    new players[32], num, i, player, name[32]//, count
    get_players(players, num)
    for(i = 0; i < num; i ++)
    {
    player = players[i]
    if(id != player)
    {
    if(is_visible(id, player))
    {
    count ++
    get_user_name(player, name, 31)
    client_print(id, print_chat, "Za vami nabludaet %s", name)
    }
    }
    }
    if(count == 0)
    {
    client_print(id, print_chat, "Za vami nikto ne nabludaet")
    }
    }


    is_visible_origin(id, Float:origin) , get_tr2,
    Valer4

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

    is_visible
    #include <fakemeta>

    new bool: g_is_visible[32]

    public plugin_init()
    {
    register_forward(FM_TraceLine, "pfw_traceline", 1)
    }

    public pfw_traceline(Float:start[3], Float:end[3], cond, id, tr)
    {
    new Float:vecend[3]
    get_tr2(tr, TR_vecEndPos, vecend)
    if (is_visible_origin(id, vecend) && !g_is_visible[id])
    g_is_visible[id] = true
    else if(g_is_visible[id])
    g_is_visible[id] = false
    }
    }


    if(g_is_visible[id])


    , )))
    Valer4

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

    , , , )))
    Valer4

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


    is_visible_origin(id, Float:origin)
    id ( ) origin.
    origin , :
    entity_get_vector(id2, EV_VEC_origin, Origin).
    , TEST
    #include <amxmodx>
    #include <engine>

    public plugin_init() {
    register_plugin("is_visible_origin", "1.0", "Valer4")
    register_clcmd("say check", "check")
    }

    public check(id)
    {
    new id2 = get_user_index("TEST")
    new Float: Origin[3]
    entity_get_vector(id2, EV_VEC_origin, Origin)
    if(is_visible_origin(id, Origin))
    client_print(id, print_chat, "YES")
    else
    client_print(id, print_chat, "NO")
    }
    Valer4

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

    , ! .
    http://www.amx-x.ru/viewtopic.php?f=9&t=73

    , , .