AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Auto Join on Connect (https://forums.alliedmods.net/showthread.php?t=51098)

VEN 02-11-2007 13:12

Auto Join on Connect
 
1 Attachment(s)
Auto Join on Connect
Description
Plugin allow to players automatically join team/team&class on connect.
CVars
  • ajc_team (0: OFF, N: team index, 5: auto team, default: 5) - controls team join
  • ajc_class (0: OFF, N: class index, 5: auto class, default: 5) - controls class join
  • ajc_imm (0: OFF, 1: ON, default: 1) - don't affect on immuned players (ON/OFF)

Credits
Major__ - inquiry

Da_sk8rboy 02-11-2007 13:14

Re: Auto Join on Connect
 
So while connecting you can pick or team & class? I'm confused. :P

VEN 02-11-2007 13:37

Re: Auto Join on Connect
 
"team/team&class" mean "team OR (team AND class)"

jopmako 02-11-2007 14:15

Re: Auto Join on Connect
 
Code:

public task_force_team_join(menu_msgid[], id) {
 
  // Need check user if connected? I think.
  // Or else crash server if client disconnect when using engclient_cmd
  if (!is_user_connected(id))
    return
 
}


VEN 02-12-2007 02:26

Re: Auto Join on Connect
 
Code:
// not really because if user isn't connected // native result will be equal to -1 // i.e. true, and hence, return if (get_user_team(id))         return
Code:
// amxmodx.cpp static cell AMX_NATIVE_CALL get_user_team(AMX *amx, cell *params) /* 3 param */ {         int index = params[1];                 if (index < 1 || index > gpGlobals->maxClients)                 return -1;                 CPlayer* pPlayer = GET_PLAYER_POINTER_I(index);        
        if (pPlayer->ingame)
        {                 /* <snip> */                 if (params[3])                 {                         set_amxstring(amx, params[2], pPlayer->team.c_str(), params[3]);                 }
                return pPlayer->teamId;
        }        
        return -1;
}

jopmako 02-12-2007 03:05

Re: Auto Join on Connect
 
O, my bad.
I got the info thanks.

Zenith77 02-12-2007 19:00

Re: Auto Join on Connect
 
May the source be with you.

SubStream 02-13-2007 09:12

Re: Auto Join on Connect
 
Simple and useful... Another great Plugin by VEN! +karma good stuff!

MrCoolMan 02-14-2007 09:25

Re: Auto Join on Connect
 
I wanna say thnx for this plugin been waiting for one like this :D

fawk3s 06-14-2007 07:24

Re: Auto Join on Connect
 
Quote:

Originally Posted by MrCoolMan (Post 440094)
I wanna say thnx for this plugin been waiting for one like this :D

But if I let ppl only join CT, and every1 is in CT, will there be "Game coming!" and will the game start?


All times are GMT -4. The time now is 12:18.

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