這是在感染模式出倖存者的插件,不需要有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.教學完==,麻煩大大看完這文章回文,麻煩麻煩~