[教學]制作插件第一部

Home Home
<< 1 2 >>
跳頁: (共 2 頁)
引用 | 編輯 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
引用 | 編輯 牛油加奶.
2009-08-31 12:35
1樓
  
[廣東語]你口語 台灣人唔會明用反書面話- -[/廣東語]

獻花 x0
引用 | 編輯 小魂
2009-08-31 17:11
2樓
  
完全聽不懂喔 表情 抱歉! 表情

獻花 x0
引用 | 編輯 ericheung
2009-08-31 17:58
3樓
  
找人解釋給我看看.... 表情

獻花 x0
引用 | 編輯 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
引用 | 編輯 嫩咖出場
2009-09-07 20:34
7樓
  
我看無
英衛不會改 表情

獻花 x0
引用 | 編輯 shawm888
2009-09-11 17:33
8樓
  
下面是引用 kenneth709 於 2009-09-01 13:41 發表的 : 到引言文
讓我幫你們翻譯吧~.~
[教學]制作插件第一部
相信大家都想知道怎麼寫插件!
整作插件需求:
EmEditor Pro
.......

大大   謝謝囉
我真的很想學做插件

獻花 x0
引用 | 編輯 x8462795s
2009-10-24 22:36
9樓
  
摁 我也看的董 不過我是台灣人嘿 表情

我就翻譯1樓的吧

[書面語]你口語 台灣人不會知道 換書面語- -[/書面語]

獻花 x1
引用 | 編輯 a2938751
2009-10-25 08:38
10樓
  
多謝翻譯不然我都看不懂 表情

獻花 x0
引用 | 編輯 andygoboy
2010-07-29 06:18
11樓
  
完全聽不董 表情

獻花 x0
引用 | 編輯 happychanbb
2010-07-30 13:21
12樓
  
^ good 表情

獻花 x0
引用 | 編輯 家亨
2010-08-01 01:00
13樓
  
好複雜

獻花 x0
引用 | 編輯 lc20071098
2010-08-20 08:27
14樓
  
完全5明 表情

獻花 x0
引用 | 編輯 021125692483
2010-08-20 10:12
15樓
  
謝謝你的教學,
中於有人教學制作插件了。
看了不太明白 表情

獻花 x0
引用 | 編輯 jack91918
2010-08-20 13:20
16樓
  
感謝 幸好我看得懂~~

獻花 x0
引用 | 編輯 l858535399
2010-12-04 08:46
17樓
  
完全不懂喔 表情

獻花 x0
引用 | 編輯 sdgota
2010-12-10 21:27
18樓
  
to hard,i didn,t know what are you saying!

獻花 x0
引用 | 編輯 stinkyexe
2010-12-11 19:42
19樓
  
完全看不懂 我太蠢了0 - 0 還是下載別人的

獻花 x0
引用 | 編輯 Hangbaby
2011-03-07 19:26
20樓
  
這個AMXX好易^_^

獻花 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
引用 | 編輯 aids6828
2011-03-08 23:07
25樓
  
想說盡然有人教怎做插件 結果完全看謀..

獻花 x0
引用 | 編輯 tony486
2011-03-09 12:26
26樓
  
很難改....

獻花 x0
引用 | 編輯 adrian04033
2011-05-28 00:04
27樓
  
但我看得懂 表情 我也是香港人呢

獻花 x0
引用 | 編輯 kokmbmmi
2011-07-10 16:03
28樓
  
雖然是基本的,但是是學寫插件的第一步 表情

獻花 x0
引用 | 編輯 ken30033
2011-07-10 18:57
29樓
  
唔好用廣東話

獻花 x0
<< 1 2 >>
跳頁: (共 2 頁)