public plugin_init(){ register_clcmd("rebuy", "open_menu") // if player pressed F2 (rebuy) key it will open the menu}public open_menu(){ //code}