Raised This Month: $59 Target: $400
 14% 

dod_teams - by tla-nick (updated April 21st)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Day of Defeat        Category:   Admin Commands        Approver:   DS (30)
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 04-20-2004 , 22:29   dod_teams - by tla-nick (updated April 21st)
Reply With Quote #1

Team management for Day of Defeat by tla-nick < [email protected] >

FEATURES:

Team Balancer:
  • Enable / Disable with amx_balanceteams <0|1>

    will keep numbers the same (as far as possible) on both the allies and axis
    teams. If teams get out of balance then players will be swapped to compensate.

    Players with access level CAN_UNBALANCE (def = ADMIN_RESERVATION) can change
    teams at any time no matter what the balance situation. Only dead players are
    swapped (to prevent change-slays), players with access levels CAN_UNBALANCE and
    ADMIN_IMMUNITY will not be switched.
Spectator mode lock
  • Enable / Disable with amx_spectatorlock <0|1>

    Locks spectator mode (to prevent DoD 1.0 / 1.1 spectator exploit). Only
    players with access level PASS_LOCK (def = ADMIN_RESERVATION) can join
    spectator team.
Team Locking
  • Lock a team to prevent players joining it. Only players with access level
    PASS_LOCK (def = ADMIN_RESERVATION) can join a locked team. Locking a team
    will disable the balancer (if enabled).

COMMANDS:
amx_allies <player>
Force target to join team "Allies"

amx_axis <player>
Force target to join team "Axis"

amx_balance
Force the server to do a balance check now

amx_shuffle
Shuffling places the player with the highest frags on team A, the second
highest on team B, the third on Team A and so on. It will also slay ALL
players (to compensate for the change-slays). You cannot shuffle while
a team is locked. This command does NOT respect ADMIN_IMMUNITY


amx_slayteam <team>
slay all players without ADMIN_IMMUNITY on <team>

amx_lock <team>
locks a team
amx_unlock <team>
unlocks a team

amx_swap
Move all Allies players to Axis and visa versa. If one team is locked then the
lock will also be switched. This command does NOT respect ADMIN_IMMUNITY


-------------------------------------------
The team switch commands and the spectator lock are "core" functions and cannot
be removed.

The Balancer, Team Lock, Shuffle, Swap and Slayteam may all be removed by
commenting out (//) the relevant #define before compiling the plugin.


------------------------------------------------------

Version History

v 0.1: no changes to code needed for an error free compile

v 0.2: changes made by sidluke = chaged the includes and all log_to_file
Attached Files
File Type: sma Get Plugin or Get Source (dod_teams.sma - 3920 views - 18.0 KB)
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 04-21-2004 , 15:15  
Reply With Quote #2

changed #include amxmod to #include amxmodx
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 04-21-2004 , 17:25  
Reply With Quote #3

Quote:
Use log_amx instead of log_to_file
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 04-22-2004 , 02:50  
Reply With Quote #4

ok so here is the deal now with the changes:

v 0.2a: changed #include amxmod to #include amxmodx
  • Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

    dod_teams.sma(101) : error 017: undefined symbol "get_logfile"

    1 Error.

v 0.3a: Used log_amx instead of log_to_file
  • Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

    dod_teams.sma(101) : error 017: undefined symbol "get_logfile"

    1 Error.

i'm sure this is something stupid that i whould be able to fix if I had an inch of clue on SMALL - but I dont - so I plea for your help.
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 04-22-2004 , 08:04  
Reply With Quote #5

Send me code . Sma file is empty.
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
cyko
Member
Join Date: Mar 2004
Old 04-24-2004 , 13:39  
Reply With Quote #6

Yes, if you could post a 'non-empty' file, that would be terrific.
cyko is offline
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 04-24-2004 , 15:30  
Reply With Quote #7

Thanks to sid luke for the fix last night:
Attached Files
File Type: sma Get Plugin or Get Source (dod_teams.sma - 1733 views - 18.0 KB)
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 04-28-2004 , 16:09  
Reply With Quote #8

I am having issues with the spectator block portion of this plugin; can someone else please verify that amx_spectatorlock 1 actually blocks all non-admin privelaged users from using spectator mode?
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
[415]StoNeD
Senior Member
Join Date: Mar 2004
Old 04-30-2004 , 20:32  
Reply With Quote #9

Wouldn't taking yourself off the users list make you a reg?
[415]StoNeD is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-30-2004 , 20:34  
Reply With Quote #10

naw it makes u a nub
__________________
QwertyAccess 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 05:46.


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