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

    : 7
    : 3
    : -
    : crawl Bot, robot Bot, Yandex Bot, Google AdSense

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 8-03-2012, 11:08 : 2407

    cs_get_hostage_foll

    , cs_get_hostage_foll, , . , , , . , .

    cstrike.inc:
    /* Returns index of entity (does not have to be a player) which hostage is following. 0 is hostage doesn't follow anything.
    * Note: this native does not work on Condition Zero, which has a different hostage AI than CS. */
    native cs_get_hostage_foll(index);


    :
    cs_get_hostage_foll(index)

    • index - ! ,
    id , 0 .

    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

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


    #define PLUGIN "[cstrike.inc] cs_get_hostage_foll"
    #define VERSION "1.0"
    #define AUTHOR "XxAvalanchexX , Admin"


    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say /fh","fhm")
    }
    public fhm(id){
        
        client_print(id,print_chat,"Hostage[%d]",hostages_following(id))
    }
    stock hostages_following(id) {
        
        new offset = 0, count = 0;
        while((offset = find_ent_by_class(offset,"hostage_entity"))) {
            if(cs_get_hostage_foll(offset) == id) {
                count++;
            }
        }
        return count;
    }


    :
    , hostages_following , XxAvalanchexX. . say /fh, , , hostages_following .

    hostages_following :
    1. while ( )
    2. , , 1.

    , engine.
    , .
    .
    cs_get_hostage_foll