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

    : 8
    : 7
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 8-11-2012, 01:32 : 3266

    cs_set_user_plant

    fm_give_item, , . cs_set_user_plant .

    cstrike.inc:
    /* If plant is 1, a user will be set to be able to plant bomb within the usual bomb target areas if having one.
    * You should use this if you give a player a weapon_c4, or he won't be able to plant it
    * without dropping it and picking it up again (only possible for terrorists).
    * If showbombicon is 1, the green C4 icon will be shown on user hud (if plant "skill" was enabled).
    */
    native cs_set_user_plant(index, plant = 1, showbombicon = 1);


    :
    cs_set_user_plant(index, plant = 1, showbombicon = 1)

    • index - id
    • plant = 1 - .
    • showbombicon = 1 -


    :
    Native

    :
    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <fakemeta_util>

    #define PLUGIN "[http://amxxmodx.ru] cs_set_user_plant"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say /plant","plant)
        register_clcmd("say /givec4","give_c4")

    }
    public give_c4(id){
        
        fm_give_item(id, "weapon_c4")
        
    }
    public plant(id){
        
        cs_set_user_plant(id,1,1)
        
    }


    :
    :
    1. say /givec4
    2. say /plant

    , , , .
    , .
    .
    cs_set_user_plant