問題X2

Home Home
引用 | 編輯 asean75300
2010-03-07 17:20
樓主
推文 x0
1.我看到了這個補給箱,http://bbs.mychat.to/reads.php?tid=856122
我其實只是想要用那個雷達圖示,可是這樣我要把原本的補給箱插件弄調,他裡面的東西....
原本補給箱的內容:                                請幫我改成這樣~謝謝!!

#include <amxmodx>
#include <cstrike>
#include <fun>
#include "dtgifts"

#define PLUGIN_NAME "DTGifts-補給箱禮物修改"
#define PLUGIN_VERSION "1.1"
#define PLUGIN_AUTHOR "ahcat"

public plugin_init()
{
        register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
   
        register_gift_l( "get_mp5", "WEAPON_GET_SOMEGUN", "WEAPON_GET_MP5", 80);
        register_gift_l( "get_sg552", "WEAPON_GET_SOMEGUN", "WEAPON_GET_SG552", 85);
        register_gift_l( "get_he", "WEAPON_GET_SOMEHE", "WEAPON_GET_HE", 95);
        register_gift_l( "get_elite", "WEAPON_GET_SOMEGUN", "WEAPON_GET_elite", 90);
}

public get_mp5( id)
{
        give_item( id, "weapon_mp5navy");
        give_item( id, "ammo_9mm");
        give_item( id, "ammo_9mm");
        give_item( id, "ammo_9mm");
}

public get_sg552(id)
{
       
        give_item( id, "weapon_sg552");
        give_item( id, "ammo_556nato");
        give_item( id, "ammo_556nato");
        give_item( id, "ammo_556nato");
}

public get_he(id)
{
        new n_currentHE =  cs_get_user_bpammo( id, CSW_HEGRENADE);
    if (n_currentHE == 0)
        give_item ( id, "weapon_hegrenade");
    else
               cs_set_user_bpammo( id, CSW_HEGRENADE, n_currentHE + 1);
   
    new n_currentFB =  cs_get_user_bpammo( id, CSW_FLASHBANG);
    if (n_currentFB == 0)
        give_item ( id, "weapon_flashbang");
    else
            cs_set_user_bpammo( id, CSW_FLASHBANG, n_currentFB + 2);
       
    new n_currentSM =  cs_get_user_bpammo( id, CSW_SMOKEGRENADE);
    if (n_currentSM == 0)
        give_item ( id, "weapon_smokegrenade");
    else
            cs_set_user_bpammo( id, CSW_SMOKEGRENADE, n_currentSM + 1);
}

public get_elite( id)
{
        give_item( id, "weapon_elite");
        give_item( id, "ammo_556nato");
        give_item( id, "ammo_556nato");
        give_item( id, "ammo_556nato");
}

請,謝謝!!

2.為什麼我用4角轉換的會不能用呢?        http://bbs.mychat.to/reads.php?tid=839512
F6我按沒效耶!!表情
那X綁定見又是啥?表情

謝謝幫忙,我給花花好了表情

獻花 x0
引用 | 編輯 Equation02
2010-03-07 22:18
1樓
  
第 1 個問題我不知道,
不過第 2 個問題應該是要在 Cs1.6\cstrike\addons\amxmodx\configs 中,
找一個叫 amxx.cfg 的檔案,
拉到最下打上 bind F6 amx_view

獻花 x1