Whitch way is better to strip t's weapons?
PHP Code:
public round_end()
{
new players[32], inum, i
get_players(players, inum, "ah")
for (i = 0; i < inum; ++i)
{
if(cs_get_user_team(players[i]) == CS_TEAM_T)
{
strip_weapons(players[i])
}
}
}
PHP Code:
public round_end(id)
{
if(cs_get_user_team(id) == CS_TEAM_T && is_user_alive(id))
{
strip_weapons(id)
}
}
Stripping weapons is the only thing why i need to catch T's ids