引用 | 編輯
kit19946
2009-08-31 12:29 |
樓主
▼ |
||
x0
[教學]制作插件第一部相信好多人都想知點樣整插件! 整作插件需求: EmEditor Pro 你的手指 我就用緊EmEditor Pro 4.13 想要整出色既plugin 當然要用好既program啦:lol 要下載點就PM我啦,好!講番正題 First開EmEditor Pro 插件有幾個結構的,就係"開頭"同"中間"既部分 咩係開頭呢? 包括:註冊你的插件,作者,插件名稱,版本 當然仲要選擇要用既modules, 咁modules又係咩黎呢? 就係C:\Program Files\Valve\cstrike\addons\amxmodx\modules 入面既檔案, 通常download amxx已經會有下列list, amxmodx amxmisc mysql sqlite fun engine fakemeta geoip sockets regex nvault cstrike csx hamsandwich 等等 呢d 唔講太多 遲d教學再教 通常我地會用到amxmodx,amxmisc,cstrike 我就用個比較容易既SMA檔黎教大家格式啦 #include <amxmodx> #include 就係你要選擇用既modules #include <amxmisc> #define PLUGIN "Server Rules" #define 就係下定義 #define VERSION "0.1" #define AUTHOR "BBQ" public plugin_init() { 就係開始註冊插件既部份 register_plugin(PLUGIN, VERSION, AUTHOR) 就係註冊你的插件 PLUGIN, VERSION ,AUTHOR 就係apply 番你定義左既野 register_clcmd("say /rules","ShowMotd") register_clcmd就係註冊控制台指令 } public ShowMotd(id) { show_motd(id, "rules.txt") 呢個就係顯示motd出黎! 咩係motd ? motd就係打/top15 會顯示既屏幕 } public client_authorized(id) { set_task(30.0, "printText" ,id) 呢個我就設定每30秒就會運行PrintText 這定義 } public printText(id) { client_print(id, print_chat, "[伺服器規則] 請輸入/rules查看伺服器規則 .") 我把這定義設為print!print就係下圖 } x1
|
引用 | 編輯
amygirltwo
2009-08-31 18:52 |
4樓
▲ ▼ |
我看不懂廣東話啦
可以改成書面語嗎? x0 |
引用 | 編輯
kenneth709
2009-08-31 18:56 |
5樓
▲ ▼ |
呵呵,我聽懂~~~
because I am Hong Knog people~~~~~~~~ x2 |
引用 | 編輯
kenneth709
2009-09-01 13:41 |
6樓
▲ ▼ |
讓我幫你們翻譯吧~.~
[教學]制作插件第一部 相信大家都想知道怎麼寫插件! 整作插件需求: EmEditor Pro 你的手指 我就用緊EmEditor Pro 4.13 想要整出色既plugin 當然要用好既program啦:lol 要下載點就發短信給我啦,好!開始說啦~ First開EmEditor Pro 插件有幾個結構的,就是"開頭"和"中間"的部分 什麼是開頭呢? 包括:註冊你的插件,作者,插件名稱,版本 當然還要選擇要用的modules, 那modules又是什麼呢? 就是C:\Program Files\Valve\cstrike\addons\amxmodx\modules 裡面的檔案, 通常download amxx已經會有下列list, amxmodx amxmisc mysql sqlite fun engine fakemeta geoip sockets regex nvault cstrike csx hamsandwich 等等 這些不講太多 一會兒發教學再教 通常我們會用到amxmodx,amxmisc,cstrike 我會用一個比較容易的SMA檔來教大家格式啦 #include <amxmodx> #include 就是你要選擇用的modules #include <amxmisc> #define PLUGIN "Server Rules" #define 就是下定義 #define VERSION "0.1" #define AUTHOR "BBQ" public plugin_init() { 就是開始註冊插件的部份 register_plugin(PLUGIN, VERSION, AUTHOR) 就係註冊你的插件 PLUGIN, VERSION ,AUTHOR 就係apply 回到你定義了的東西 register_clcmd("say /rules","ShowMotd") register_clcmd就是註冊控制台指令 } public ShowMotd(id) { show_motd(id, "rules.txt") 這個就是顯示motd出來! 什麼是motd呢 ? motd就是打/top15 會顯示的屏幕 } public client_authorized(id) { set_task(30.0, "printText" ,id) 這個我就設定每30秒就會運行PrintText 這定義 } public printText(id) { client_print(id, print_chat, "[伺服器規則] 請輸入/rules查看伺服器規則 .") 我把這定義設為print!print就是下圖 } 呵呵 x5 |
引用 | 編輯
x8462795s
2009-10-24 22:36 |
9樓
▲ ▼ |
摁 我也看的董 不過我是台灣人嘿
我就翻譯1樓的吧 [書面語]你口語 台灣人不會知道 換書面語- -[/書面語] x1 |
引用 | 編輯
happychanbb
2010-07-30 13:21 |
12樓
▲ ▼ |
^ good
x0 |
引用 | 編輯
lc20071098
2010-08-20 08:27 |
14樓
▲ ▼ |
完全5明
x0 |
引用 | 編輯
021125692483
2010-08-20 10:12 |
15樓
▲ ▼ |
謝謝你的教學,
中於有人教學制作插件了。 看了不太明白 x0 |
引用 | 編輯
l858535399
2010-12-04 08:46 |
17樓
▲ ▼ |
完全不懂喔
x0 |
引用 | 編輯
calvinngth
2011-03-08 19:08 |
21樓
▲ ▼ |
我正在期待樓主的下一篇教學~
x0 |
引用 | 編輯
qazzsew2988
2011-03-08 19:11 |
22樓
▲ ▼ |
謝謝啦6樓的大大
x0 |
引用 | 編輯
jjjerry093
2011-03-08 20:11 |
23樓
▲ ▼ |
有些字和介紹看不懂
x0 |
引用 | 編輯
kwok23512351
2011-03-08 21:51 |
24樓
▲ ▼ |
完全聽不懂喔
x0 |
引用 | 編輯
adrian04033
2011-05-28 00:04 |
27樓
▲ ▼ |
但我看得懂 我也是香港人呢
x0 |