View Single Post
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 03-30-2015 , 16:53   Re: Auto join, replace class menu properly
Reply With Quote #4

Quote:
Originally Posted by Jhob94 View Post
Well i guess that's a nice option too.
But i don't want to allow jointeam command after doing that. My idea before was to let 0 spawnpoints for Terro teams so they can't join Terro. And disable allowspectators cvar. But i need this so what about this? It can be bypassed?
PHP Code:
#include <amxmodx>

new bool:Joined[33]

public 
plugin_init()
{
    
register_clcmd("jointeam""cmdhandler")
}

public 
client_connect(id)
    
Joined[id] = false
    
public client_disconnect(id)
    
Joined[id] = false
    
public cmdhandler(id)
{
    if(!
Joined[id])
    {
        
Joined[id] = true
        
return PLUGIN_CONTINUE
    
}
    
    return 
PLUGIN_HANDLED

Not the best idea of what u want, but here:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("chooseteam""CMD_JoinTeam")
    
register_clcmd("jointeam""CMD_JoinTeam")
    
register_clcmd("joinclass""CMD_JoinTeam")
}

public 
CMD_JoinTeam(id)
{
    
//Make your menu    

Now go log in to steam

Edit: Nvm, no idea what u mean..
__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 03-30-2015 at 17:03.
SkumTomteN is offline