引用 | 編輯
Oo阿赫oO
2011-01-20 21:29 |
樓主
▼ |
||
x0
如題......當殭屍好煩= =..尤其是指有自己在那裡白X白X得抓= = BOT又好會跑 =囗=!! 是否有方式讓自己不成為第一隻喪屍-////-? 請大大幫幫忙-///- 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 發表的 : 經過測試之後 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 |
引用 | 編輯
竹炭水
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 |
引用 | 編輯
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 |