Counter-Strike Duel Plugin
Usage
When duel mod is started all players but 2 will be moved to spectator. The 2 not moved will be placed in CT and T team and will be given a M4A1, an USP and a knife. When ie. the CT player kills the T player a HUD message will be displayed in the center of the screen that says "<ctplayername> won the duel against <tplayername>" and the loser will be switched against another player from spectator.
Admin Commands
csdp_enable 1/0 - Enable/Disable plugin (Default 1)
csdp_saveduels 1/0 - Save duels/Don't save duels (Default 1)
csdp_votestostop # - Decides how many votes needed to stop duelmod (Default 5)
csdp_startduel - Starts duel mod
csdp_stopduel - Stops duel mod
User Commands
say !duelstats - Shows your duels won and lost (if csdp_saveduels is 1 it is saved by vault)
say !stopduel - Votes to stop duelmod. Number of votes required is decided by the cvar csdp_votestostop
Modules Needed
CStrike
Fun
Engine
Good to know
When duel mod is started noone can choose teams. After duel mod is stopped you can choose teams again.
Credits
Servak (ideas)
Fadeproof18 (ideas)
Updates
1.0
- Release for public.
1.0b
- Plugin will now work for dedicated servers.
- Added !stopduel votecommand for players.
1.0c
- Fixed the player checks (Suggested by VEN)
- Fixed another way to delete the bomb (Suggested by VEN)
- Added an ADMIN_LEVEL define which you can change to fit your level
- Now the players cant use jointeam or joinclass either
1.0d
- Changed the get_user_flags(id) to is_user_admin(id)
- NOW the players cant use jointeam or joinclass
- Fixed some of the bugs (Suggested by VEN)
1.1
- Fixed the bomb deleting event
- Moved the if(DuelMod) before the code in logevent_round_start()