複製程式
public client_putinserver(id)
{
new classname[32]
pev(id, pev_classname, classname, 31)
if (!equal(classname, "player") && !g_czbot)
{
set_task(0.5, "registerham_from_czbot", id)
g_czbot = true
}
}
轉成
複製程式
public client_putinserver(id)
{
new classname[32]
pev(id, pev_classname, classname, 31)
if (!equal(classname, "player") && !g_czbot)
{
set_task(0.5, "registerham_from_czbot", id)
g_czbot = true
}
if (cs_get_user_team(id) == CS_TEAM_CT)
{
set_task(1.0, "respawn_user", id)
}
}