下面是引用 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++)
...........