How to make bots shoot entity if they see it?
Another question:
How to force a round end without oprheu or Round Terminator & without kill all players? I try to slay using user_silentkill like this but it makes all players dead.
PHP Code:
public TRWin(id) //kill all ct if terrorist win
{
new t_players[32], ct_count
get_players(t_players, ct_count, "ae", "CT")
for (new i = 0 ; i < ct_count ; ++i)
{
new x = t_players[i]
user_silentkill(x)
cs_set_user_deaths(x, cs_get_user_deaths(x) - 1)
}
}
public CTWin(id) //kill all t if ct win
{
new ct_players[32], t_count
get_players(ct_players, t_count, "ae", "TERRORIST")
for (new i = 0 ; i < t_count ; ++i)
{
new x = ct_players[i]
user_silentkill(x)
cs_set_user_deaths(x, cs_get_user_deaths(x) - 1)
}
}