Quote:
Originally Posted by ConnorMcLeod
Depending on what you want
|
If you don't want to allow the player to choose, then, just kill him and set gis team to spec, example in plmenu.sma
PHP Code:
if (g_cstrike)
{
if (is_user_alive(player))
{
new deaths = cs_get_user_deaths(player)
user_kill(player, 1)
cs_set_user_deaths(player, deaths)
}
// This modulo math just aligns the option to the CsTeams-corresponding number
cs_set_user_team(player, (g_menuOption[id] % 3) + 1)
cs_reset_user_model(player)
}
__________________