AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   dod_teams - by tla-nick (updated April 21st) (https://forums.alliedmods.net/showthread.php?t=1261)

pendragon 04-20-2004 21:29

dod_teams - by tla-nick (updated April 21st)
 
1 Attachment(s)
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

pendragon 04-21-2004 14:15

changed #include amxmod to #include amxmodx

SidLuke 04-21-2004 16:25

Quote:

Use log_amx instead of log_to_file
:P

pendragon 04-22-2004 01:50

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. :D

SidLuke 04-22-2004 07:04

Send me code . Sma file is empty.

cyko 04-24-2004 12:39

Yes, if you could post a 'non-empty' file, that would be terrific.

pendragon 04-24-2004 14:30

1 Attachment(s)
Thanks to sid luke for the fix last night:

pendragon 04-28-2004 15:09

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?

[415]StoNeD 04-30-2004 19:32

Wouldn't taking yourself off the users list make you a reg? :wink:

QwertyAccess 04-30-2004 19:34

naw it makes u a nub :roll:


All times are GMT -4. The time now is 00:55.

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