引用 | 編輯
Marchillus
2013-02-09 14:56 |
樓主
▼ |
||
|
引用 | 編輯
Marchillus
2013-02-10 14:12 |
2樓
▲ ▼ |
引用 | 編輯
Mansoncs
2013-02-14 10:21 |
3樓
▲ ▼ |
教學是很詳盡,但字色可以變少少更好
例如 : if(!is_user_alive(id)) <----解作如果玩家不是活著 !是指相反的意思 ^ 整句 紅色 x0 |
引用 | 編輯
Marchillus
2013-02-14 10:43 |
4樓
▲ ▼ |
引用 | 編輯
弒血
2013-03-07 12:29 |
6樓
▲ ▼ |
抱歉喔 嫯狼 能讓我指點一下嗎~
判斷式 如果沒有 特定的其他條件的話 你可以 改成 public giveme(id) { if(!is_user_alive(id)) { client_print(id, print_chat, "嫯狼:你這個蘿莉控") } else { give_item(id, "weapon_awp") } } 不用再多給他 if(is_user_alive(id)) 的判斷 他會自動 去執行 除非你還有 其他的判斷方式。 x0 |
引用 | 編輯
Marchillus
2013-03-09 11:32 |
7樓
▲ ▼ |
下面是引用 s8720419 於 2013-03-07 12:29 發表的 :在這裡不可以這樣...會誤導一些新手 例如 else那邊有加client_print 那不是死了也會給他彈出訊息嗎? x0 |
引用 | 編輯
Marchillus
2013-06-12 12:01 |
9樓
▲ ▼ |
引用 | 編輯
Marchillus
2013-06-13 19:46 |
11樓
▲ ▼ |
引用 | 編輯
j12412211202
2014-05-11 09:59 |
12樓
▲ ▼ |
因為大大的教學。令我學會了如何製作sma
x0 |
引用 | 編輯
月夢神
2014-07-20 22:11 |
13樓
▲ ▼ |
public fw_CmdStart(id, uc_handle, seed)
{ if(!is_user_alive(id) || !is_user_connected(id)) return if(get_user_weapon(id) != CSW_MAC10 || !g_had_Speargun[id]) return static ent; ent = fm_get_user_weapon_entity(id, CSW_MAC10) if(!pev_valid(ent)) return static CurButton CurButton = get_uc(uc_handle, UC_Buttons) if(CurButton & IN_ATTACK && get_pdata_float(id, 83, 5) <= 0.0) { if(get_pdata_float(ent, 46, OFFSET_LINUX_WEAPONS) > 0.0 || get_pdata_float(ent, 47, OFFSET_LINUX_WEAPONS) > 0.0) return CurButton &= ~IN_ATTACK set_uc(uc_handle, UC_Buttons, CurButton) if(g_Speargun_ammo[id] == 0) return if(get_pdata_float(id, 83, 5) <= 0.0) { FireArrow_Charge(id) g_ready = 1 g_Speargun_ammo[id]-- update_ammo(id) set_weapons_timeidle(id, CSW_MAC10, 2.2) set_player_nextattackx(id, 2.2) if(g_Speargun_ammo[id] >= 1) { Set_WeaponAnim(id, Speargun_ANIM_SHOOT) emit_sound(id, CHAN_WEAPON, sound[0], 1.0, ATTN_NORM, 0, PITCH_NORM) set_task(1.0, "reloadspear", id) } else { Set_WeaponAnim(id, Speargun_ANIM_SHOOT) emit_sound(id, CHAN_WEAPON, sound[0], 1.0, ATTN_NORM, 0, PITCH_NORM) } } } else if(CurButton & IN_ATTACK2) { if(g_ready) { CurButton &= ~IN_ATTACK2 set_uc(uc_handle, UC_Buttons, CurButton) remove_task(Ent) g_rightclick = 1 explode(Ent) } } } x0 |
引用 | 編輯
IWTLATDSBS
2014-08-15 12:48 |
14樓
▲ ▼ |
威望威望
x0 |
引用 | 編輯
lilaihung8
2015-08-06 18:05 |
19樓
▲ ▼ |
我玩左1.6以經3年 一直都好想學插件 但是都覺得好難 看了你三篇教學 好像有點興趣
加上我自已修ict 希望有幫助 x0 |
引用 | 編輯
lilaihung8
2015-08-07 08:48 |
20樓
▲ ▼ |
/* Plugin generated by AMXX-Studio */
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #define PLUGIN "選單" #define VERSION "1.0" #define AUTHOR "keith yu" #define m_c menu_create #define m_a menu_additem public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /gunmenu", "gunmenu") } public gunmenu(id) { new menu = m_c("\r測試選單 By Xliao~New_Keith", "menu_creater") m_a(menu, "\w測試一", "1", 0) m_a(menu, "\y測試二", "2", 0) m_a(menu, "\w測試三", "3", 0) menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu, 0) } public menu_creater(id, menu, item) { if(item == MENU_EXIT) { menu_destroy(menu) return PLUGIN_HANDLED } new data[6], iName[64] new access, callback menu_item_getinfo(menu, item, access, data,5, iName, 63, callback) new key = str_to_num(data) switch(key) { case 1: { menu_destroy(menu) return PLUGIN_HANDLED } case 2: { client_print(id, print_chat, "我學緊寫插件") menu_destroy(menu) return PLUGIN_HANDLED } case 3: { if(is_user_alive(id)) { give_item(id, "weapon_awp") menu_destroy(menu) return PLUGIN_HANDLED } else { client_print(id, print_chat, "你死左不能拎awp") menu_destroy(menu) return PLUGIN_HANDLED } } //到底錯了甚麼 有沒有大大指教一下 /* Plugin generated by AMXX-Studio */ x0 |
引用 | 編輯
a23107971a
2016-05-07 12:17 |
25樓
▲ ▼ |
還算仔細的教學文
希望之後的我都能看得懂= = x0 |
引用 | 編輯
maplefeather
2016-10-24 20:57 |
27樓
▲ |
x0 |