教大家把sk大的[彷 CSO 狂暴手榴彈]變成不可購買

Home Home
引用 | 編輯 zxcvasd2
2010-11-14 14:51
樓主
推文 x1
首先大家打開zp_extra_zombie_bomb.sma

看到一堆的sound 和 模組

在往下點會看到
複製程式
new const g_szItemName[] = "狂暴手榴彈" new const g_iItemPrice = 1


我們先把他del掉

然後把下邊的

複製程式
new g_iNadeID


複製程式
g_iNadeID = zp_register_extra_item (g_szItemName, g_iItemPrice, ZP_TEAM_ZOMBIE)


也del掉

接著搜尋public zp_extra_item_selected(id, Item)

複製程式
public zp_extra_item_selected(id, Item) 
{ 
 if (Item == g_iNadeID) 
 { 
  if (g_iJumpingNadeCount[id] >= 5) 
  { 
   zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + g_iItemPrice) 
   client_print(id, print_chat, "[ZP] 你不能取得更多 狂暴手榴彈 !") 
   return PLUGIN_HANDLED; 
  } 
  give_zp_item(id) 
 } 
 return PLUGIN_CONTINUE 
} 
give_zp_item(id) 
{ 
        if (!zp_get_user_zombie(id) || zp_get_user_nemesis(id)) return; 
 new iBpAmmo = cs_get_user_bpammo(id, CSW_SMOKEGRENADE) 
   
 if (g_iJumpingNadeCount[id] >= 1) 
 { 
  cs_set_user_bpammo(id, CSW_SMOKEGRENADE, iBpAmmo+1) 
  emit_sound(id, CHAN_ITEM, "items/9mmclip1.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) 
  AmmoPickup(id,13,1) 
  g_iJumpingNadeCount[id]++ 
 } 
 else 
 { 
  give_item(id,"weapon_smokegrenade") 
  emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) 
  AmmoPickup(id, 13, 1) 
  g_iJumpingNadeCount[id] = 1 
 } 
}


把這些也del去了

搜尋if (g_iJumpingNadeCount[id] == 0)

複製程式
if (g_iJumpingNadeCount[id] == 0) 
 { 
  if (g_bot_use[id]) g_bot_use[id] = false 
  new ammo = zp_get_user_ammo_packs(id) 
  new bot_buy = random_num(1, 50) 
  if (bot_buy == 1 || bot_buy == 2 && ammo > g_iItemPrice + 3) 
  { 
   give_zp_item(id) 
   zp_set_user_ammo_packs(id, ammo - g_iItemPrice) 
  } 
  else return FMRES_IGNORED; 
 }]


del掉這些

就完成了 你不會看到在m選單可以買狂暴手榴彈了

獻花 x1
引用 | 編輯 tw2twtw
2010-11-14 17:02
1樓
  
不能買那裝插件有何用.... 表情

獻花 x0
引用 | 編輯 史來姆
2010-11-14 21:56
2樓
  
下面是引用 tw2twtw 於 2010-11-14 17:02 發表的 : 到引言文
不能買那裝插件有何用.... 表情

你不知道當變成殭屍時
會自動給一顆?(像cso一樣)

獻花 x1
引用 | 編輯 0o0o0
2010-11-15 18:05
3樓
  
好麻煩喔= = 我只逛逛我不買嚕..

獻花 x0
引用 | 編輯 lska021
2010-11-15 19:10
4樓
  
有沒有一般模式也能用的?=.=

獻花 x0
引用 | 編輯 綠茶三頭犬
2010-11-15 19:27
5樓
  
我想說樓主打錯字....
del掉這些

就完成了 你不會看到在m選單可以買狂暖手榴彈了

狂暖手榴彈?是不是會發暖的手榴彈...

你這個教學可以將一些要ZP的插件變成不需經ZP的插件(一般模式可用)?

獻花 x0
引用 | 編輯 不會打字
2010-11-15 19:47
6樓
  
狂暖= =
我有點笑了= =
不要踹我

獻花 x0
引用 | 編輯 zxcvasd2
2010-11-16 17:11
7樓
  
一般模式的話應該就不可用

因為入邊有指令是說變成殭屍會給你一個手榴彈

獻花 x0
引用 | 編輯 lovely333333
2010-11-19 22:00
8樓
  
有點麻煩...
不過也感謝您的分享!

獻花 x0
引用 | 編輯 糟糕了啦!
2010-11-23 17:10
9樓
  
... 這有何用處呢 ? = =''

獻花 x0
引用 | 編輯 zxcvasd2
2010-11-23 18:49
10樓
  
彷 CSO .............

獻花 x0
引用 | 編輯 rujli
2010-11-25 18:19
11樓
  
下面是引用 史來姆 於 2010-11-14 21:56 發表的 : 到引言文


你不知道當變成殭屍時
會自動給一顆?(像cso一樣)

CSO-NST也會自動配給一顆給殭屍7.7

嘛~~都是仿CSO的說(茶)

表情

獻花 x0
引用 | 編輯 10012323
2010-11-27 17:05
12樓
  
感謝您的教學與分享唷!!!

獻花 x0
引用 | 編輯 waephy13
2010-11-28 00:56
13樓
  
這個我會囉不過還是辛苦你了好好加油喔

獻花 x0
引用 | 編輯 a0400555
2010-11-28 15:59
14樓
  
很麻煩呢!我就這樣del amxx和去掉ZP的am××命就行呀!

獻花 x0
引用 | 編輯 zxcvasd2
2010-11-29 19:07
15樓
  
下面是引用 a0400555 於 2010-11-28 15:59 發表的 : 到引言文
很麻煩呢!我就這樣del amxx和去掉ZP的am××命就行呀!


我想說"你不懂就不要在這胡說"

你把amxx和zp的amxx命令del掉看看還用不用到?

獻花 x0
引用 | 編輯 andrew5579
2010-12-02 16:26
16樓
  
這可以限制有人不停購買狂暴手雷?

獻花 x0
引用 | 編輯 zxcvasd2
2010-12-03 14:36
17樓
  
是喔

還有cxo也是這樣的

獻花 x0
引用 | 編輯 komb
2010-12-08 17:50
18樓
  
gd
支持樓主
距離仿cso又近一步了

獻花 x0
引用 | 編輯 qma
2011-01-09 12:23
19樓
  
能使   手雷 只能購買 而不會自己給嗎

獻花 x0
引用 | 編輯 dolovekit
2011-01-10 17:12
20樓
  
看看了 狂炸

獻花 x0
引用 | 編輯 V永恆熊
2011-01-21 18:39
21樓
  
我是比較想 可以不用購買 但是可以無限的丟- -

獻花 x0
引用 | 編輯 zdt
2011-01-27 17:39
22樓
  
支持呀~~~~终于摆脱被同学狂扔手雷的命运啦~~~我的同学存起几百块,不停地扔。。。。终于结束噩梦啦

獻花 x0
引用 | 編輯 itismenow
2011-02-04 01:34
23樓
  
很不错的方法,去改改看.

獻花 x0
引用 | 編輯 alvin321
2011-02-20 20:12
24樓
  
好亂...

獻花 x0
引用 | 編輯 jjjerry093
2011-03-13 19:35
25樓
  
當殭屍會獲得嗎 表情

獻花 x0
引用 | 編輯 jim5700135
2011-11-10 20:52
26樓
  
哈哈XD
感謝教學:目

獻花 x0