Raised This Month: $ Target: $400
 0% 

Menu to chooseteam key


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Estland
Member
Join Date: Nov 2012
Old 01-14-2014 , 07:29   Menu to chooseteam key
Reply With Quote #1

How can I replace default chooseteam menu with a new one?

Code:
public plugin_init()
{
register_clcmd("chooseteam", "function", 0);
}
Like that?
Estland is offline
Estland
Member
Join Date: Nov 2012
Old 01-15-2014 , 08:53   Re: Menu to chooseteam key
Reply With Quote #2

Anyone?
Estland is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 01-15-2014 , 15:43   Re: Menu to chooseteam key
Reply With Quote #3

Code:
Public plugin_init( ) { Register_clcmd( "chooseteam", "CmdChooseteam" ); } Public CmdChooseteam( index ) { // put in your menu function hook here return PLUGIN_HANDLED; }

I'm on mobile so code isn't indented
__________________
Blizzard_87 is offline
Verknupfung
New Member
Join Date: Jan 2014
Old 01-20-2014 , 04:58   Re: Menu to chooseteam key
Reply With Quote #4

Code:
#include <amxmodx>
#include <cstrike>

#define PLUGIN "ChooseTeam"
#define VERSION "1.0"
#define AUTHOR "Amx"

public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("chooseteam", "CmdChooseteam")
	register_clcmd("jointeam", "CmdChooseteam")
}

public CmdChooseteam(id) 
{
         if (cs_get_user_team(id) == CS_TEAM_UNASSIGNED || cs_get_user_team(id) == CS_TEAM_SPECTATOR)
         return PLUGIN_CONTINUE

         client_cmd(id,"say menu") // Code... CmdMenu(id)
         return PLUGIN_HANDLED
}
Try this, sorry for my english.

Last edited by Verknupfung; 01-20-2014 at 05:03.
Verknupfung 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 10:09.


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