Can someone show a better way, instead of slowhacking?
I would like to show a custom menu after pressing "OK" in the MOTD.
PHP Code:
// New VGUI Menus
stock const VGUI_JOIN_TEAM_NUM = 2
register_message(get_user_msgid("VGUIMenu"), "message_VGUIMenu")
public message_VGUIMenu(iMsgid, iDest, id)
{
if(get_msg_arg_int(1) != VGUI_JOIN_TEAM_NUM)
{
return PLUGIN_CONTINUE
}
client_cmd(id, "slot10")
set_task(0.1, "task_team_menu", id)
return PLUGIN_HANDLED
}
Doesn't work perfectly.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.