AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Simple auto team join (https://forums.alliedmods.net/showthread.php?t=189770)

dFF 07-10-2012 17:40

Simple auto team join
 
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.

guipatinador 07-10-2012 19:21

Re: Simple auto team join
 
Try this http://forums.alliedmods.net/showthread.php?p=438587 or this http://forums.alliedmods.net/showthread.php?p=1643945


All times are GMT -4. The time now is 15:09.

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