[ZP]設定第一隻喪屍不是自己(當殭屍好煩...)

Home Home
引用 | 編輯 Oo阿赫oO
2011-01-20 21:29
樓主
推文 x0
如題......當殭屍好煩= =..

尤其是指有自己在那裡白X白X得抓= =

BOT又好會跑 =囗=!! 

是否有方式讓自己不成為第一隻喪屍-////-?

請大大幫幫忙-///-

獻花 x0
引用 | 編輯 andyt0621
2011-01-20 21:41
1樓
  
你是指想把第一隻喪屍設為bot嗎0.0

(可以放sma上來嗎

獻花 x0
引用 | 編輯 Oo阿赫oO
2011-01-20 21:53
2樓
  
下面是引用 andyt0621 於 2011-01-20 21:41 發表的 : 到引言文
你是指想把第一隻喪屍設為bot嗎0.0

(可以放sma上來嗎
我想將第一隻喪屍設定為BOT....

您說的sma是指...?

我殭屍得主插件...?

可以的話我比較希望有教學=_=

獻花 x0
引用 | 編輯 andyt0621
2011-01-20 21:58
3樓
  
 找 Single Infection Mode or Nemesis Mode
把下面id = fnGetRandomAlive(random_num(1, iPlayersnum))
換成 id = fnGetRandomAlive(random_num(1, fnGetBot()))

然後在插件的任何位置加上..
複製程式
fnGetBot()
{
 static iAlive, id
 iAlive = 0
 
 for (id = 1; id <= g_maxplayers; id++)
 {
  if (g_isalive[id] && g_isbot[id])
   iAlive++
 }
 
 return iAlive;
}

你試看看..只有改在Infection

獻花 x1
引用 | 編輯 Oo阿赫oO
2011-01-20 23:43
4樓
  
下面是引用 andyt0621 於 2011-01-20 21:58 發表的 : 到引言文
 找 Single Infection Mode or Nemesis Mode
把下面id = fnGetRandomAlive(random_num(1, iPlayersnum))
換成 id = fnGetRandomAlive(random_num(1, fnGetBot()))

然後在插件的任何位置加上..
複製程式
fnGetBot()
{
 static iAlive, id
 iAlive = 0
 
 for (id = 1; id <= g_maxplayers; id++)
 {
  if (g_isalive[id] && g_isbot[id])
   iAlive++
 }
 
 return iAlive;
}

你試看看..只有改在Infection


經過測試之後

 id = fnGetRandomAlive(random_num(1, fnGetBot()))的1

是每場都不是BOT當殭屍是玩家...

我將它改成2了@@~

但還是謝謝大大^^~

獻花 x0
引用 | 編輯 i-c0112
2011-01-21 00:16
5樓
  
id = fnGetRandomAlive(random_num(1, fnGetBot()))
看來是ZP4.2吧
因為4.3好像沒有fnGetBot 也沒有樓主所說的bug
表情表情表情

獻花 x0
引用 | 編輯 zdt
2011-01-29 22:25
6樓
  
那就没有刺激感了,但是我想问一下。为什么群体感染模式(20%人变僵尸)为什么有90%都有我的份??

獻花 x0
引用 | 編輯 V永恆熊
2011-01-29 22:52
7樓
  
偶而也當一下殭屍麻~ 銀   ((遭毆...
當殭屍有時候也不錯玩呀

獻花 x0
引用 | 編輯 竹炭水
2011-02-13 08:19
8樓
  
找 Single Infection Mode or Nemesis Mode
把下面     id = fnGetRandomAlive(random_num(1, iPlayersnum))
換成這樣   id = fnGetRandomAlive(random_num(1, fnGetBot()))
然後加上
fnGetBot()
{
static iAlive, id
iAlive = 0

for (id = 1; id <= g_maxplayers; id++)
{
if (g_isalive[id] && g_isbot[id])
  iAlive++
}

return iAlive;
}

獻花 x0
引用 | 編輯 cs5415
2011-05-11 23:22
9樓
  
好複雜都看不懂耶ˊˋ

獻花 x0
引用 | 編輯 chantikki
2011-05-12 17:11
10樓
  
id = fnGetRandomAliveBot(random_num(1, fnGetBot()))

fnGetRandomAliveBot(n)
{
     static iAliveAndBot, id
     iAliveAndbot = 0
     
     for (id = 1; id <= g_maxplayers; id++)
     {
           if (is_user_alive(id) && is_user_bot(id))
                 iAliveAndBot++
           
           if (iAliveAndBot == n)
                 return id;
     }
     return -1;
}
加上這個才能真正實現 首名喪屍是BOT的功能...

獻花 x0