引用 | 編輯
Oo阿赫oO
2011-01-18 02:18 |
樓主
▼ |
||
x0
額...如題sk@.@大的精準射擊插件http://bbs-mychat.com/reads.php?tid=863519&keyword=%E7%B2%BE%E6%BA%96 ↑此篇不知是否有人可以將它修改成進入ZP時即可獲得.... 因為看到了有人將 狂爆手榴彈修改成 不能購買 變成喪屍及可獲得. 因為小弟想將M鍵的生化商店鎖住.可是這樣就無法購買精準= =.... 希望大大可以幫忙... 若可以請給教學. 若是直接給檔 會永遠都不知道是怎麼修改- -... x1
|
引用 | 編輯
i-c0112
2011-01-18 19:52 |
3樓
▲ ▼ |
把ZP的購買選單部分去掉主要是
複製程式 new const g_precshoot_name[] = { "精準射擊" } g_precshoot_cost = register_cvar("zp_precshoot_cost", "25") //買精準射擊要花多少子彈包 g_itemid_precshoot = zp_register_extra_item(g_precshoot_name, get_pcvar_num(g_precshoot_cost), ZP_TEAM_HUMAN) public zp_extra_item_selected(id, itemid) { ...... } 那麼紀錄是否購買用的變數可以省了 複製程式 g_has_precshoot[33] //註釋掉它吧...與此變數相關部分也別忘了去掉 先把價錢設成0 複製程式 g_precshoot_cost = register_cvar("zp_precshoot_cost", "0") 複製程式 client_putinserver(id) { zp_extra_item_selected(id, g_itemid_precshoot) } 還有a78大的對於zombieplague.inc裡面的native和forward的用法講解 x1 |
引用 | 編輯
Oo阿赫oO
2011-01-18 23:02 |
4樓
▲ ▼ |
所以
new const g_precshoot_name[] = { "精準射擊" } 在目錄中的選項刪除 g_precshoot_cost = register_cvar("zp_precshoot_cost", "25") //買精準射擊要花多少子彈包 因為不需要子彈包 所以也將它刪除 g_itemid_precshoot = zp_register_extra_item(g_precshoot_name, get_pcvar_num(g_precshoot_cost), ZP_TEAM_HUMAN) 跟 public zp_extra_item_selected(id, itemid) { ...... } 皆為註冊語法(?) client_putinserver(id) { zp_extra_item_selected(id, g_itemid_precshoot) } 這語法是直接購買的語法.... 可直接打在最下面嗎? 我會去看的@0@ 真得非常感謝 x0 |
引用 | 編輯
lyw8614505
2011-01-19 16:52 |
5樓
▲ ▼ |
真的是沒太看懂樓上幾位高人的解答,不知道2樓的附件是不是修改好的
x0 |
引用 | 編輯
i-c0112
2011-01-19 17:39 |
6樓
▲ ▼ |
下面是引用 Oo阿赫oO 於 2011-01-18 23:02 發表的 :複製程式 g_itemid_precshoot = zp_register_extra_item(g_precshoot_name, get_pcvar_num(g_precshoot_cost), ZP_TEAM_HUMAN) 下面是玩家在ZP購買選單內購買物品時會呼叫的forward 然後再由註冊時回傳的值"g_itemid_precshoot"判斷購買的物品 複製程式 public zp_extra_item_selected(id, itemid) { ...... } x0 |
引用 | 編輯
gcobs164593
2011-01-21 10:13 |
7樓
▲ ▼ |
我也不知道怎改= =
看了霧煞煞 x0 |