Raised This Month: $ Target: $400
 0% 

Destroy chooseteam menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-24-2011 , 06:22   Destroy chooseteam menu
Reply With Quote #1

Hey guys!
I made a server that requires blocking 'chooseteam' and/or 'jointeam' command, it assigns you to a team automatically. The problem is that now when i do it, players when they log ingame they get the selection menu (where you click 1 for Terrorist and 2 for CT and 5 for Auto-Assign), and they cant click it ofcourse cuz its blocked, but i dont want them to use it anyway cuz the code, once again, automatically assigns you to a team!

Question is, is there any way I can do a command that will kill this team selection menu or prevent it from appearing when a client connects?
Diegorkable is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-24-2011 , 06:30   Re: Destroy chooseteam menu
Reply With Quote #2

PHP Code:
show_menu(00"^n"1); 
will it help too?

EDIT: It didnt help

Last edited by Diegorkable; 07-24-2011 at 07:51.
Diegorkable is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-24-2011 , 06:39   Re: Destroy chooseteam menu
Reply With Quote #3

See Exolent's team join management plugin. I'm sure he does what you want there.


Quote:
Originally Posted by Diegorkable View Post
PHP Code:
show_menu(00"^n"1); 
will it help too?
That has nothing to do with the screens you are talking about.
__________________
fysiks is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-24-2011 , 08:12   Re: Destroy chooseteam menu
Reply With Quote #4

It's a whole new plugin, that does many other things I don't want it to do, all I want is a simple code that prevents the chooseteam menu from appearing at client_connect to a client.
Diegorkable is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-24-2011 , 09:46   Re: Destroy chooseteam menu
Reply With Quote #5

nvm in order to disable that all I did is display a random menu i made (menu_create) and then show_menu like i posted above. the menu overwrote the chooseteam menu, and the showmenu overwrote the menu, and show_menu the way i wrote it shows nothing, so i'd say thats a pretty good alternative lol
Diegorkable is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-24-2011 , 20:09   Re: Destroy chooseteam menu
Reply With Quote #6

PHP Code:
          register_clcmd("buy","Block");  // Block buy menu

public Block(id)
{
          if(
Cvar 0) return PLUGIN_HANDLED;

          return 
PLUGIN_CONTINUE;

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-24-2011 at 20:10. Reason: Ops
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-25-2011 , 06:32   Re: Destroy chooseteam menu
Reply With Quote #7

You dont think I tried it before? IT doesnt works on the CHOOSETEAM menu that appears at the BEGINNING.
Diegorkable is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode