AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY] (https://forums.alliedmods.net/showthread.php?t=182861)

DreamWorks 04-14-2012 10:03

[HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
 
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 04-14-2012 14:15

Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
 
No one? :'(:'(:'(

Devil259 04-14-2012 15:02

Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
 
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 ); }

DreamWorks 04-14-2012 18:05

Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
 
Thanks you a lot! man :) you are awesome thkkk to you

DreamWorks 04-14-2012 19:17

Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
 
OMG it's not working!! this plugin do exactly the same error of the first plugin i posted :'(
http://img11.hostingpics.net/pics/545112ctfuck.png

Please help me !!

Exolent[jNr] 04-14-2012 19:28

Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
 
You want all players forced to Terrorist team?

DreamWorks 04-14-2012 20:17

Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
 
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...

wickedd 04-14-2012 22:26

Re: [HELP] Block "JoinTeam" [Plzzz!] [URGENTLY]
 
Take a look at this.


All times are GMT -4. The time now is 13:47.

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