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

[HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DreamWorks
Senior Member
Join Date: Mar 2012
Old 04-14-2012 , 10:03   [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #1

Hello, in my jailbreak, some players can enter to the counter terrorist team

This plugin block users only if they are in a team... but when users enter in the server (for the first time) they can enter by writing : "jointeam 02" in the console...

So how can i block them when they join the server, then block them from writing "jointeam 02"

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

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

public 
client_commandclient )
{
    static const 
szJoinCommand[ ] = "jointeam";
    
    static 
szCommand10 ];
    
read_argv0szCommand);
    
    if( 
equalszCommandszJoinCommand )
    && 
CS_TEAM_T <= cs_get_user_teamclient ) <= CS_TEAM_CT )
    {
        
console_printclient"You cannot use jointeam while on a team! BOT!" );
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;

DreamWorks is offline
DreamWorks
Senior Member
Join Date: Mar 2012
Old 04-14-2012 , 14:15   Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #2

No one? :'(:'(:'(
DreamWorks is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 04-14-2012 , 15:02   Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #3

Code:
#include < amxmodx > #include < cstrike > public plugin_init( ) {      register_clcmd( "chooseteam", "clcmdTeam" );      register_clcmd( "jointeam", "clcmdTeam" ); } public clcmdTeam( id ) {      return ( CS_TEAM_T <= cs_get_user_team( id ) <= CS_TEAM_CT ); }
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 04-14-2012 at 15:02.
Devil259 is offline
DreamWorks
Senior Member
Join Date: Mar 2012
Old 04-14-2012 , 18:05   Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #4

Thanks you a lot! man you are awesome thkkk to you
DreamWorks is offline
DreamWorks
Senior Member
Join Date: Mar 2012
Old 04-14-2012 , 19:17   Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #5

OMG it's not working!! this plugin do exactly the same error of the first plugin i posted :'(


Please help me !!

Last edited by DreamWorks; 04-14-2012 at 19:18.
DreamWorks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-14-2012 , 19:28   Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #6

You want all players forced to Terrorist team?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
DreamWorks
Senior Member
Join Date: Mar 2012
Old 04-14-2012 , 20:17   Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #7

No!! I want that player have the choice to select a team... because, already i have a plugin that block users from acceding to CT team. It's named: Team Locker

I want only, that players can never use the command : "jointeam" if they are already or not in a team...
DreamWorks is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 04-14-2012 , 22:26   Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
Reply With Quote #8

Take a look at this.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 15:14.


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