AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Destroy chooseteam menu (https://forums.alliedmods.net/showthread.php?t=162884)

Diegorkable 07-24-2011 06:22

Destroy chooseteam menu
 
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 07-24-2011 06:30

Re: Destroy chooseteam menu
 
PHP Code:

show_menu(00"^n"1); 

will it help too?

EDIT: It didnt help

fysiks 07-24-2011 06:39

Re: Destroy chooseteam menu
 
See Exolent's team join management plugin. I'm sure he does what you want there.


Quote:

Originally Posted by Diegorkable (Post 1517274)
PHP Code:

show_menu(00"^n"1); 

will it help too?

That has nothing to do with the screens you are talking about.

Diegorkable 07-24-2011 08:12

Re: Destroy chooseteam menu
 
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 07-24-2011 09:46

Re: Destroy chooseteam menu
 
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

^SmileY 07-24-2011 20:09

Re: Destroy chooseteam menu
 
PHP Code:

          register_clcmd("buy","Block");  // Block buy menu

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

          return 
PLUGIN_CONTINUE;



Diegorkable 07-25-2011 06:32

Re: Destroy chooseteam menu
 
You dont think I tried it before? IT doesnt works on the CHOOSETEAM menu that appears at the BEGINNING.


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

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