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

fm_strip_user_gun » AmxModX
| |
 RSS
  • OnLine

    : 5
    : 3
    : -
    : crawl Bot, Yandex Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Nesquik : 23-09-2013, 09:13 : 4320
    fm_strip_user_gun ( CSW_* )
    fakemeta_util.inc
    stock bool:fm_strip_user_gun(index, wid = 0, const wname[] = "") {
    new ent_class[32];
    if (!wid && wname[0])
    copy(ent_class, sizeof ent_class - 1, wname);
    else {
    new weapon = wid, clip, ammo;
    if (!weapon && !(weapon = get_user_weapon(index, clip, ammo)))
    return false;

    get_weaponname(weapon, ent_class, sizeof ent_class - 1);
    }

    new ent_weap = fm_find_ent_by_owner(-1, ent_class, index);
    if (!ent_weap)
    return false;

    engclient_cmd(index, "drop", ent_class);

    new ent_box = pev(ent_weap, pev_owner);
    if (!ent_box || ent_box == index)
    return false;

    dllfunc(DLLFunc_Think, ent_box);

    return true;
    }


    :
    stock fm_strip_user_gun(index, wid=0, const wname[] = "")

    index -
    wid -
    wname[] -

    :
    Stock

    :
    #include <amxmodx>
    #include <fakemeta_util>

    new pistols[6] = {CSW_USP, CSW_GLOCK18, CSW_ELITE, CSW_FIVESEVEN, CSW_P228, CSW_DEAGLE} //

    public plugin_init()
    {
    register_clcmd("say /strip", "strip_user_gun") //
    }

    public strip_user_gun(id)
    {
    for(new i = 0; i < 6; i++) // pistols[6]
    {
    fm_strip_user_gun(id, pistols[i]) //
    }
    }


    say /strip,
    , .
    .
    fm_strip_user_gun