Raised This Month: $ Target: $400
 0% 

Help with a simple team switch blocker


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sauron_pk
Junior Member
Join Date: Oct 2011
Old 11-25-2011 , 02:02   Help with a simple team switch blocker
Reply With Quote #1

Hi i want to make a team switch blocker for TFC(hl1 mod).

Basically i made this code:
Code:
#include <amxmodx>

public plugin_init()
{
    register_plugin("TSBlock", "1.0", "TSBlock");
    register_clcmd("jointeam", "cmdjointeam");
}

public cmdjointeam(id)
{
    client_print(id, print_chat, "[AMXX] Team switch isn't allowed.");
    
    return PLUGIN_HANDLED;
}
The problem is that when anyone enter the game they can't choose any team and i don't want to use the auto team assign...

So i need to basically "validate" that if the user isn't in a team(or in spect) they can choose a team, and if the user is in a team (red blue green yellow, 1, 2, 3, 4) they can't use the jointeam command....


Anyone can help me?

THanks!!
sauron_pk 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 08:23.


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