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

make_deathmsg / » AmxModX
| |
 RSS
  • OnLine

    : 7
    : 4
    : -
    : crawl Bot, robot Bot, Yandex Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 1-09-2011, 14:45 : 5174

    make_deathmsg /

    make_deathmsg ( ), .
    : , , .

    message_stocks.inc:
    /* Creates a death message. */
    stock make_deathmsg(killer, victim, headshot, const weapon[])
    {
        message_begin(MSG_ALL, get_user_msgid("DeathMsg"), {0,0,0}, 0);
        write_byte(killer);
        write_byte(victim);

        new mod_name[32];
        get_modname(mod_name, 31);
        if (equal(mod_name, "cstrike") || equal(mod_name, "czero") || equal(mod_name, "csv15") || equal(mod_name, "cs13"))
            write_byte(headshot);
        write_string(weapon);
        message_end();

        return 1;
    }


    :
    make_deathmsg ( killer, victim, headshot, weapon[] )

    • killer - id
    • victim - id
    • headshot - 0/1 (/)
    • weapon[] -


    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "Kill message"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    //
    stock const g_weapon_names[][] ={
        "", // NULL
        "p228",    "shield","scout","grenade",
        "xm1014","c4","mac10","aug","smokegrenade",
        "elite","fiveseven","ump45","sg550","galil",
        "famas","usp","glock18","awp","mp5navy",
        "m249","m3","m4a1","tmp","g3sg1","flashbang",
        "deagle","sg552","ak47","knife","p90"
    }
    public plugin_init ( ){
        
        register_plugin ( PLUGIN, VERSION, AUTHOR )
        
        //
        register_event("Damage", "message_dead", "b", "2!0")
    }
    public message_dead(id){
        
        new weapon // id
        new bodypart // 0 - , 1
        new attacker //
        
        attacker = get_user_attacker(id,weapon,bodypart)
        
        // , 0, 1
        if(bodypart == 1){
            bodypart = 1
        }else{
            bodypart = 0
        }
        
        // , .
        // - 2 .
        make_deathmsg(attacker,id,bodypart, g_weapon_names[weapon])
    }


    :
    , ( , )
    , id .
    get_user_attacker, , :
    • id - id
    • weapon -
    • bodypart -

    id attacker.
    ( 1 ) 1 , make_deathmsg .

    . , :)
    , amxconst.inc, :

    :
    CSW_GALIL


    galil


    : stock const g_weapon_names
    , , get_user_attacker.

    , , , , .
    , .
    .
    make_deathmsg /
    Dg_INC

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

    register_event( "DeathMsg",     "message_dead",      "a");

    ? wink
    Admin

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

    .
    --------------------
    mika3394

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

    " "
    Radius

    7.05.2013
    ICQ: 357188115
    : 1
    : 57
    : -  4  +

    : mika3394
    " "
    .

    , , .