引用 | 編輯
HsK
2010-06-19 10:27 |
樓主
▼ |
||
x9
【插件資訊】插件來源:原創 使用指令:購買2把小刀看效果 xD 安裝路徑:addons\amxmodx\scripting 【插件介紹】 大家有沒有試過以下狀況?? 買了一把刀後再買另一把小刀.... 令攻效重覆呢? 現在用了這插件後... 可以只有一把刀的功效" 買了新刀後...舊刀功效會被取消 影片: 教學: 首先在 zp_disable_two_knife.sma 上方的 new const g_weapon_plugin_filename[][] = {""} 內加入小刀插件的 插件名 例如: new const g_weapon_plugin_filename[][] = { "test_super_knife_a1.amxx", "test_super_knife_b1.amxx" } 然後在對應g_weapon_plugin_filename的小刀插件內加入: #define CONNECT_PLUGIN_NAME "zp_disable_two_knife.amxx" (zp_disable_two_knife.amxx是本插件名) 在買小刀的段中加入: (zp的即 public zp_extra_item_selected(id, itemid)) Enable_User_Weapon(id) 再加入: public Enable_User_Weapon(id) { new temp[2], plugin_filename[64] get_plugin(-1, plugin_filename, charsmax(plugin_filename), temp, 1, temp, 1, temp, 1, temp, 1) new plugin_id = find_plugin(CONNECT_PLUGIN_NAME) if (plugin_id != -1) { new func_id = get_func_id("Enable_Weapon_Plugin", plugin_id) callfunc_begin_i(func_id, plugin_id) callfunc_push_str(plugin_filename, false) callfunc_push_int(id) callfunc_end() } } public Disable_User_Weapon(id) { if (g_has_sknife_a1[id]) (g_has_sknife_a1[id] 即小刀定義) g_has_sknife_a1[id] = false (g_has_sknife_a1[id] 即小刀定義) } stock find_plugin(plugin_filename[]) { new temp[2], name[64] for (new i = 0; i < get_pluginsnum(); i++) { get_plugin(i, name, 63, temp, 1, temp, 1, temp, 1, temp, 1) if (equali(name, plugin_filename)) { return i } } return -1 } 30威 5元 [此文章售價 5 雅幣已有 32 人購買]若發現會員採用欺騙的方法獲取財富,請立刻舉報,我們會對會員處以2-N倍的罰金,嚴重者封掉ID! x1
|
引用 | 編輯
0912277575
2010-06-19 11:15 |
4樓
▲ ▼ |
引用 | 編輯
bugatti1024
2010-06-19 11:24 |
5樓
▲ ▼ |
看了樓上大大的解釋大概了解這插件的功能了!!
不過像我現在沒用小刀的插件...有建議用哪一個嗎? x1 |
引用 | 編輯
01a2Bc3DeF
2010-06-19 20:48 |
10樓
▲ ▼ |
請問如果有安裝多槍插件
那買第2次小刀時第1次的會存在OR消失? 希望是存在的 x0 |
引用 | 編輯
shsps940316
2010-06-19 21:28 |
11樓
▲ ▼ |
看到一大串的英文,就讓我頭痛
x0 |
引用 | 編輯
a0937692886
2010-06-20 10:03 |
12樓
▲ ▼ |
只能用龍牙任插件嗎
x1 |
引用 | 編輯
lyw8614505
2010-06-21 09:51 |
14樓
▲ ▼ |
還真的沒注意過,用刀的時候極少
x0 |
引用 | 編輯
mnbmnb5266
2010-07-14 02:04 |
17樓
▲ ▼ |
太复杂用不了,还是留给专业人士用吧
x0 |
引用 | 編輯
keroromiles
2010-10-02 13:04 |
22樓
▲ ▼ |
覺得沒什麼差別....還是感謝
x0 |
引用 | 編輯
jimmy850731
2010-10-02 14:05 |
23樓
▲ ▼ |
其實還好吧
不用那麼強制性 x0 |