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

    : 6
    : 5
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Monstr : 9-05-2012, 09:23 : 7704

    cs_set_user_bpammo

    vip , .

    cstrike.inc:
    /* Restock/remove ammo in a user's backpack.
    */
    native cs_set_user_bpammo(index, weapon, amount);


    :
    cs_set_user_bpammo(index, weapon, amount)

    • index - .
    • weapon - .
    • amount - .


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

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

    #define PLUGIN "[cstrike.inc] cs_set_user_bpammo"
    #define VERSION "0.1"
    #define AUTHOR "Mon[str]"


    public plugin_init()
    {
        register_plugin(PLUGIN, VERSION, AUTHOR);
        
        register_clcmd("say /give_ammo", "give_ammo");
    }

    public give_ammo(id)
    {
        if(!is_user_alive(id))
            return 0;
        
        new szArg[3];
        
        read_argv(1, szArg, charsmax(szArg));
        
        if(is_str_num(szArg))
        {
            new iWeapon = get_user_weapon(id);
            new iAmmo = str_to_num(szArg);
            
            cs_set_user_bpammo(id, iWeapon, iAmmo);
        }
        
        return 1;
    }


    :
    .
    , .

    give_ammo(id):
    .

    3 , .

    is_str_num, .

    2 iWeapon iAmmo c get_user_weapon, , str_to_num .
    , .
    .
    cs_set_user_bpammo
    djangelo

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

    winked
    froiz

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

    , !

    , , .