引用 | 編輯
p1356ar247
2011-10-16 18:53 |
樓主
▼ |
||
x1
首先你要有一個EmEditor.以下是一個範例: #include <amxmodx> (amxmodx"係模塊/英文係module) #include <cstrike> (cstrike"係模塊/英文係module) #include <fun> (fun"係模塊/英文係module) (呢三個也是指amxx的需要物品,例如開車,要有燃料) #define PLUGIN "200hp" (amxx的名稱) #define VERSION "1.0" (amxx的版本) #define AUTHOR "GamesGoD" (amxx的作者) public plugin_init() (控制指令){ register_plugin(PLUGIN, VERSION, AUTHOR) (系統會睇成 register_plugin(名稱, 1.0,GamesGoD) register_clcmd("say /200hp", "steroids") (''say=y說話,打/200hp會發生指令,sterodis=效果) } public steroids(id) (控制效果) (id=玩家名稱) { set_user_health(id, 200) (設定玩家的生命為200HP) set_user_gravity(id,1.50) (設定玩家的重力為1.50倍) client_print(id, print_center,"你的生命為200,重力為1200") (print_center=晝面的中間顯示''你的生命為200,重力1200") } x0
|
引用 | 編輯
mike19950425
2011-10-25 05:53 |
4樓
▲ ▼ |
這好像每個人都會吧...
x0 |
引用 | 編輯
史來姆
2011-11-02 22:43 |
6樓
▲ ▼ |
先吐槽一下
1.cstrike跟fun不是必需 2.cstrike inc在這插件沒用 3.排版使人眼殘 4.口語 嗯...應該就這些 x0 |
引用 | 編輯
Abcdzxc555
2011-11-04 17:43 |
9樓
▲ ▼ |
你就發一個sma碼出來...新手會懂嗎?...
x0 |
引用 | 編輯
briansiocl33
2011-12-18 12:11 |
10樓
▲ ▼ |
引用 | 編輯
jackson2011
2012-02-24 20:08 |
13樓
▲ ▼ |
set_user_godmode(id,1)
我第一個學的程式碼 意思是無敵 id是玩家 1是開 用到的moduls是fun和fakemeta 要的可以學 x0 |