Just search on the google how to do it and learn from another plugin, don't take things easy.
Code:
#include <amxmodx>
public plugin_init( )
{
register_clcmd( "chooseteam" , "test" );
register_clcmd("jointeam", "test");
}
public test( id ) return PLUGIN_HANDLED;
__________________