这是在感染模式出幸存者的插件,不需要有Rubbish-Nec 大大写的插件(在感染模式出复仇者的插件),小弟也测试了这插件,没有发现bug。(如大大发现bug,请回报一下方便修改~)
当人类数目少于或等于8和幸存者少于或等于4「if(fnGetHumans() <= 8 && fnGetSurvivors() <= 4)」,有1/4的机会出幸存者「new g_leaderchance = random_num(1,4)」,这两个项目可以修改。
1. 寻找respawn_player_manually(id)
2. 在 「// Respawning a player has never been so easy
ExecuteHamB(Ham_CS_RoundRespawn, id) 」下面加上
if(fnGetHumans() <= 8 && fnGetSurvivors() <= 4)
{
new g_leaderchance = random_num(1,4)
if(g_leaderchance == 1)
{
humanme(id, 1, 0)
set_hudmessage(0, 0, 200, HUD_EVENT_X, HUD_EVENT_Y, 0, 0.0, 3.0, 2.0, 1.0, -1)
ShowSyncHudMsg(0, g_MsgSync, "SurvivorLeaderDetected!!", LANG_PLAYER)
static sound[64]
ArrayGetString(sound_survivor, random_num(0, ArraySize(sound_survivor) - 1), sound, charsmax(sound))
emit_sound(id, CHAN_ITEM, sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
PlaySound(sound);
}
}
3.教学完==,麻烦大大看完这文章回文,麻烦麻烦~