SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

is_hull_vacant . » AmxModX
| |
 RSS
  • OnLine

    : 4
    : 1
    : -
    : Yandex Bot, crawl Bot, Yandex Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 13-10-2012, 15:54 : 2894

    is_hull_vacant .

    , , , , . is_hull_vacant .

    :
    stock bool:is_hull_vacant(const Float:origin[3],hull)

    • const Float:origin[3] -
    • hull - HULL :
      #define HULL_POINT                      0
      #define HULL_HUMAN                      1
      #define HULL_LARGE                      2
      #define HULL_HEAD                       3



    :
    stock

    :
    /* Plugin generated by AMXX-Studio */

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

    #define PLUGIN "[http://amxxmodx.ru] is_hull_vacant"
    #define VERSION "1.0"
    #define AUTHOR "Admin"


    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say st","spawn_test")
    }
    public spawn_test(id){

        new Float:orig[3]
        pev(id,pev_origin,orig)
        new stena = is_hull_vacant(orig,HULL_HUMAN)
        
        client_print(id,print_chat,"Spawn ok? - %s", stena ? "Yes": "No")
                    
    }
    stock bool:is_hull_vacant(const Float:origin[3],hull)
    {
        new tr = 0;
        engfunc(EngFunc_TraceHull,origin,origin,0,hull,0,tr);

        if(!get_tr2(tr,TR_StartSolid) && !get_tr2(tr,TR_AllSolid) && get_tr2(tr,TR_InOpen))
            return true;
        
        return false;
    }


    :
    st, , , .

    : VEN
    , .
    .
    is_hull_vacant .
    Mr_ILYAS

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

    HULL_HEAD ?

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



    POINT -
    HUMAN -
    LARGE -
    HEAD -

    , , .