Raised This Month: $ Target: $400
 0% 

Simple auto team join


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 07-10-2012 , 17:40   Simple auto team join
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define    m_iJoinedState 121
#define    m_iMenu 205

#define VERSION "0.0.1"
#define PLUGIN "Force Join Team"

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
register_event("ShowMenu""EventMenu_Team_Select""b""4&#Team_Select")
    
register_event("VGUIMenu""EventMenu_Team_Select""b""1=2")
}

public 
EventMenu_Team_Selectid )
{
    
set_pdata_int(idm_iMenu1)
    
set_pdata_int(idm_iJoinedState4)
    
engclient_cmd(id"jointeam""2")

I want when player connected on server, auto joined in CT team. I need a simple version, I tried Connor's variant but doesn't work.
dFF is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 07-10-2012 , 19:21   Re: Simple auto team join
Reply With Quote #2

Try this http://forums.alliedmods.net/showthread.php?p=438587 or this http://forums.alliedmods.net/showthread.php?p=1643945
guipatinador 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 15:09.


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