Raised This Month: $ Target: $400
 0% 

Blocking team menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 07-16-2014 , 03:22   Blocking team menu
Reply With Quote #1

Hi! How can I block the team menu that is launched whenever a player joins? I have been thinking about this, but I don't seem to have any idea... well, not functional ones.


Thank you!


Best regards,
EpicKiller
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-16-2014 , 03:27   Re: Blocking team menu
Reply With Quote #2

PHP Code:
register_clcmd("chooseteam""block_choose"
&
PHP Code:
public block_choose(id)
{
        return 
PLUGIN_CONTINUE;

--------Or---------


PHP Code:
register_clcmd("chooseteam""block"
&
PHP Code:
public block(id)
{
    static 
CsTeams:team
    team 
cs_get_user_team(id)
    
    if (
team == CS_TEAM_SPECTATOR || team == CS_TEAM_UNASSIGNED)
        return 
PLUGIN_CONTINUE
    block_choose
(id)
    return 
PLUGIN_HANDLED;
}
public 
block_choose(id)
{
        return 
PLUGIN_CONTINUE;

__________________

Last edited by Eagle07; 07-16-2014 at 03:29.
Eagle07 is offline
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 07-16-2014 , 03:45   Re: Blocking team menu
Reply With Quote #3

Quote:
Originally Posted by Eagle07 View Post
PHP Code:
register_clcmd("chooseteam""block_choose"
&
PHP Code:
public block_choose(id)
{
        return 
PLUGIN_CONTINUE;

--------Or---------


PHP Code:
register_clcmd("chooseteam""block"
&
PHP Code:
public block(id)
{
    static 
CsTeams:team
    team 
cs_get_user_team(id)
    
    if (
team == CS_TEAM_SPECTATOR || team == CS_TEAM_UNASSIGNED)
        return 
PLUGIN_CONTINUE
    block_choose
(id)
    return 
PLUGIN_HANDLED;
}
public 
block_choose(id)
{
        return 
PLUGIN_CONTINUE;

Great, thanks! Your help is greatly appreciated!
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
Old 07-16-2014, 03:46
Eagle07
This message has been deleted by YamiKaitou. Reason: pointless posts
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-16-2014 , 04:39   Re: Blocking team menu
Reply With Quote #5

Add jointeam command, is the same as chooseteam ( almost ).

Last edited by HamletEagle; 07-16-2014 at 04:39.
HamletEagle 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 13:04.


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