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

get_user_health . » AmxModX
| |
 RSS
  • OnLine

    : 5
    : 4
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 7-12-2011, 13:59 : 4117

    get_user_health .

    . , , - , , , get_user_health. , .

    amxmodx.inc:
    /* Returns player health. */
    native get_user_health(index);


    :
    get_user_health ( id )

    • id - id .


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

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

    public plugin_init() {
        
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say /my_hp","f_my_hp")
        
    }
    public f_my_hp(id){
        
        // hp
        new my_health = get_user_health(id)
        
        //
        client_print(id,print_chat,"You hp:%d",my_health)
        
    }


    :
    , , , , . , .

    , f_my_hp , , . , . .

    , .
    f_my_hp .
        new maxplayers = get_maxplayers()
        new all_health
        for(new i = 1; i <= maxplayers; i++){
            all_health = all_health + get_user_health(i)
        }
        client_print(0,print_chat,"All health:%d",all_health)


    .

    :
    .
    , .
    .
    get_user_health .
    KEFIR

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

    , . :


    public event_damage(id) {
        new my_health = get_user_health(id)
        if(my_health > 0) {
            return PLUGIN_CONTINUE;
        }
        else
        client_cmd (id, " ");
        return PLUGIN_CONTINUE;
    }
    Valer4

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

    KEFIR,
    #include <amxmodx>

    public plugin_init()
    {
       register_plugin("cmd_to_death", "KEFIR", "amxmodx.ru")
    }

    public client_damage(not_used_atac, vict)
    {
        client_print(vict, print_chat, " ")
    }
    KEFIR

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

    Valer4,


    public ham_player_kill(victim){
           client_cmd();
           return PLUGIN_CONTINUE
    }

    , , .