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

ham_give_weapon weapon_ » AmxModX
| |
 RSS
  • OnLine

    : 3
    : 2
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 26-03-2012, 09:40 : 4297

    ham_give_weapon weapon_

    .

    :
    stock ham_give_weapon(id,weapon[])
    {
        if(!equal(weapon,"weapon_",7)) return 0

        new wEnt = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,weapon));
        if(!pev_valid(wEnt)) return 0

        set_pev(wEnt,pev_spawnflags,SF_NORESPAWN);
        dllfunc(DLLFunc_Spawn,wEnt)
        
        if(!ExecuteHamB(Ham_AddPlayerItem,id,wEnt))
        {
            if(pev_valid(wEnt)) set_pev(wEnt,pev_flags,pev(wEnt,pev_flags) | FL_KILLME);
            return 0
        }

        ExecuteHamB(Ham_Item_AttachToPlayer,wEnt,id)
        return 1
    }


    :
    ham_give_weapon(id,weapon[])

    • id -
    • weapon[] - (weapon_*)
    1

    :
    stock

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #include <fakemeta>
    #include <hamsandwich>


    #define PLUGIN "[The useful functions] ham_give_weapon"
    #define VERSION "1.0"
    #define AUTHOR "Admin"


    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say AWP","give_AWP")
        register_clcmd("say AK","give_AK")
        
    }
    public give_AK(id){
        
        ham_give_weapon(id,"weapon_ak47")
        
    }
    public give_AWP(id){
        
        ham_give_weapon(id,"weapon_awp")
        
    }
    stock ham_give_weapon(id,weapon[])
    {
        if(!equal(weapon,"weapon_",7)) return 0

        new wEnt = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,weapon));
        if(!pev_valid(wEnt)) return 0

        set_pev(wEnt,pev_spawnflags,SF_NORESPAWN);
        dllfunc(DLLFunc_Spawn,wEnt)
        
        if(!ExecuteHamB(Ham_AddPlayerItem,id,wEnt))
        {
            if(pev_valid(wEnt)) set_pev(wEnt,pev_flags,pev(wEnt,pev_flags) | FL_KILLME);
            return 0
        }

        ExecuteHamB(Ham_Item_AttachToPlayer,wEnt,id)
        return 1
    }


    :
    2 :
    say AK say AWP , , , 2 , , , .
    , .
    .
    ham_give_weapon weapon_
    arwel

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

    ))
    Nesquik

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


    wink
    kolobok1

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

    , weapon_ak47 ?

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

    - , 29
    weapon_knife - .

    .

    new const weapons_name[][] =
    {
        "", "weapon_p228", "", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_c4", "weapon_mac10", "weapon_aug",
        "weapon_smokegrenade", "weapon_elite", "weapon_fiveseven", "weapon_ump45", "weapon_sg550", "weapon_galil", "weapon_famas",
        "weapon_usp", "weapon_glock18", "weapon_awp", "weapon_mp5navy", "weapon_m249", "weapon_m3", "weapon_m4a1", "weapon_tmp",
        "weapon_g3sg1", "weapon_flashbang", "weapon_deagle", "weapon_sg552", "weapon_ak47", "weapon_knife", "weapon_p90"
    }
    Radius

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

    . ", ". give_item fun.inc .

    , , .