[教學]制作插件第一部
相信好多人都想知點樣整插件!整作插件需求:
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就係下圖
}
今次教學就係咁多
[ 本帖最後由 wilson409 於 19-9-2008 12:24 編輯 ]
回復 樓主 的帖子
d人睇完都唔明嫁啦;P http://www.amxmodx.org/**i.php教哂咁多個function應該會識寫架啦 原帖由 yathsing 於 19-9-2008 12:50 發表 http://www.nakuz.com/bbs/images/common/back.gif
http://www.amxmodx.org/**i.php
教哂咁多個function應該會識寫架啦
佢地就係唔太識英文吧! 睇完amxx宮網都作左幾件出黎 好深奧-.-....... 原帖由 煙士 於 20-9-2008 02:31 發表 http://www1.nakuz.com/bbs/images/common/back.gif
好深奧-.-.......
呢篇算容易-.-
回復 7# 的帖子
其實唔太難...不過amxx官網英文...囧..我睇得明小小:L http://www.hkgalden.com/faces/good.gifhttp://www.hkgalden.com/faces/good.gifhttp://www.hkgalden.com/faces/good.gif太少啦教多d啦http://www.hkgalden.com/faces/clown.gif