1.
Code:
public client_connect(id)
set_user_info(id, "_vgui_menus", "0");
Instead, hook event "VGUIMenu" like you did "ShowMenu".
2.
Code:
public menuteam(id)
client_cmd(id, "slot2");
public menuclass(id)
client_cmd(id, "slot5");
Instead, block the other menus that you hooked with PLUGIN_HANDLED, and here, do:
Code:
public menuteam(id)
{
engclient_cmd(id, "jointeam", "2");
engclient_cmd(id, "joinclass", "5");
return PLUGIN_HANDLED;
public menuclass(id)
{
engclient_cmd(id, "joinclass", "5");
return PLUGIN_HANDLED;
}
3. Usually in DeathRun servers, the Terrorist is random for first round, then the Terrorist is the CT that kills the Terrorist. If no CT wins, then the Terrorist stays.
You should add a cvar to be random or to follow CT actions.
__________________