下面是引用 Rubbish-Nec 於 2009-11-15 22:59 發表的 :
不是阿,我想要的是要nemesis可以進入Extra Items Menu 這個…
請看以下... 這邊是教你怎麼樣讓nemesis購買extra_items 其實滿容易的,如果你要讓他揍人會爆炸的話,之後再說
1.
ctrl+f 鍵入
// 2. Extra items 找到
// 2. Extra items
if (!g_survivor[id] && !g_nemesis[id] && get_pcvar_num(cvar_extraitems) && is_user_alive(id))
len += formatex(menu[len], sizeof menu - 1 - len, "\r2.\w %L^n", id, "MENU_EXTRABUY")
把
紅色部分刪掉
2.
ctrl+f 鍵入
// Check whether the player is able to buy anything 找到
// Extra items enabled?
if (get_pcvar_num(cvar_extraitems))
{
// Check whether the player is able to buy anything
if (is_user_alive(id) && !g_survivor[id] && !g_nemesis[id])
show_menu_extras(id)
else
zp_colored_print(id, "^x04[ZP]^x01 %L", id ,"CMD_NOT")
}
一樣
紅色部分刪掉(括弧別刪)
3.
ctrl+f 鍵入
// Nemesis or Survivor shouldnt get extra items 找到
// Extra Items Menu
public menu_extras(id, key)
{
// Nemesis or Survivor shouldnt get extra items
if (g_survivor[id] || g_nemesis[id] || !is_user_alive(id))
{
zp_colored_print(id, "^x04[ZP]^x01 %L", id, "CMD_NOT")
return PLUGIN_HANDLED;
}
還是
紅色部分刪掉
搞定!!
不過你會發現
你只能買狂爆(無敵)
而不能買感染彈
為什麼呢?我告訴你
因為等同於人類那一方不能買antidote一樣
這是nemesis模式下的限制
所以
我把nemesis改到一般模式讓他出現
就買到你高興為止吧
把以下
藍色字的加入該位置
取代原來在那裏的
g_lastmode = MODE_INFECTION
// Turn player into the first zombie
zombieme(id, 0, 0, 0)
}
// Single Infection Mode
g_lastmode = MODE_INFECTION
// Turn player into the first zombie
zombieme(id, 0, 0, 0)
// Turn someone into a Nemesis (not the survivor!)
while (g_survivor[id]) id = fnGetRandomAlive(random_num(1, iPlayersnum));
zombieme(id, 0, 1, 0)
// Randomly turn iMaxZombies players into zombies
while (iZombies < iMaxZombies)
{
// Keep looping through all players
if (id++ > g_maxplayers) id = 1
// Dead or already a zombie
if (!is_user_alive(id) || g_zombie[id])
continue;
// Random chance
if (random_num(0, 1))
{
// Turn into a zombie
zombieme(id, 0, 0, 1)
iZombies++
}
}
}
// Rest of players should be humans (CTs)
for (id = 1; id <= g_maxplayers; id++)
...........