HsK
CCN@HsK
級別: 版主
版區: CS插件區
x1701
x1108
|
分享:
▲
new bool:g_abc;
public fw_PlayerKilled(victim, attacker, shouldgib) { if (g_nemesis[victim]) g_abc = false; }
respawn_player_manually(id) { if (!g_abc) return;
// Set proper team before respawning, so that the TeamInfo message that's sent doesn't confuse PODBots if (g_respawn_as_zombie[id]) fm_cs_set_user_team(id, FM_CS_TEAM_T) else fm_cs_set_user_team(id, FM_CS_TEAM_CT) // Respawning a player has never been so easy ExecuteHamB(Ham_CS_RoundRespawn, id) }
make_a_zombie(mode, id) { // Get alive players count static iPlayersnum iPlayersnum = fnGetAlive()
// Not enough players, come back later! if (iPlayersnum < 1) { g_countdown_timE = floatround(get_pcvar_float(cvar_warmup)) set_task(2.0, "make_zombie_task", TASK_MAKEZOMBIE) return; }
// Round started! g_newround = false
g_abc = true;
試試.
|