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

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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:14.


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