Raised This Month: $12 Target: $400
 3% 

Join team block


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
artenz
Junior Member
Join Date: Jan 2010
Old 02-07-2011 , 21:50   Join team block
Reply With Quote #1

Is their a jointeam block that blocks the command jointeam block to block the command jointeam 1 and jointeam 2 in console?
artenz is offline
ImXinR
Member
Join Date: Dec 2010
Old 02-08-2011 , 02:53   Re: Join team block
Reply With Quote #2

You mean you wanted to block the team change command ? Here ,
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Block Team Change""1.0""...");
    
register_clcmd("chooseteam""cmdChooseTeam");
}

public 
cmdChooseTeam(id)
{
    
client_print(idprint_chat"[AMXX] You are not permitted to switch teams.");
    
    return 
PLUGIN_HANDLED;

Found this code @ Block Team Change

If you want something that auto makes players join a specified team , Then :
Auto Join On Connect.
Or ,
Team Join Management.

** Please search google for the plugin which you needed before posting **
__________________
Sometimes , Life Sucks .. Don't You Agree? But ,
Listening To Music Make Us Feel Better

Last edited by ImXinR; 02-08-2011 at 02:56.
ImXinR is offline
outsiderlv
Senior Member
Join Date: Mar 2010
Old 02-08-2011 , 08:29   Re: Join team block
Reply With Quote #3

People could change teams with jointeam anyways, so you need to block that too.
outsiderlv is offline
Creey
Junior Member
Join Date: Oct 2017
Location: Morocco
Old 03-06-2018 , 18:45   Re: Join team block
Reply With Quote #4

Quote:
#include < amxmodx >
#include < cstrike >

public plugin_init( )
{
register_plugin( "Block jointeam", "0.1", "Crey" );
}

public client_command( client )
{
static const szJoinCommand[ ] = "jointeam";

static szCommand[ 10 ];
read_argv( 0, szCommand, 9 );

if( equal( szCommand, szJoinCommand )
&& CS_TEAM_T <= cs_get_user_team( client ) <= CS_TEAM_CT )
{
console_print( client, "You cannot use jointeam while on a team! BOT!" );
return PLUGIN_HANDLED;
}

return PLUGIN_CONTINUE;
}
Creey is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-07-2018 , 01:04   Re: Join team block
Reply With Quote #5

Quote:
Originally Posted by Creey View Post
stuff
Oh thank you very muTch for your fast reply.
__________________
Relaxing is offline
heroicpower7613
Member
Join Date: Nov 2016
Old 03-07-2018 , 09:13   Re: Join team block
Reply With Quote #6

Quote:
Originally Posted by Relaxing View Post
Oh thank you very muTch for your fast reply.
its not even his plugin, he just copy pasted Exolent's code and changed the author.
no idea why he sees the need to do that on a 6-7 year old post
heroicpower7613 is offline
Reply


Thread Tools
Display Modes

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 00:37.


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