Raised This Month: $51 Target: $400
 12% 

Captains Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-05-2017 , 19:31   Captains Plugin
Reply With Quote #1

CAPTAIN PLUGIN v1.5


Plugin release: 06/05/2017
Last update: 06/19/2017

- Description
I saw very newbies here asking for something like this. And one of them asked me in private to make another new system with Captain system. That system, has:

Code:
1. /start command for start the selection, the admin who used that command, can select two players, one will be
 the T captain and the  second the CT captain, thence, everything's normal.
2. When the admin selects those players, they  will spawn close one to one, the spawn can be changed manually 
( requires a LOT of knowledge about all MAP's location, guess nobody  knows it ) or with a menu. /spawnmenu 
for open it. The first coordinate, will be terrorist's coordinate. That coordinate, contains ORIGIN[0], ORIGIN[1], 
ORIGIN[2] + Angles and VAngles. When you select one, the menu will re-open for you  select the CT's origin.
3. Who win, can start to select his team first. Thence, normal.
4. The captains, have 15 seconds to select someone. If him didn't select, the oppost captain will select. 
5. The captains, can get a model, for be difference than others players. Thence, normal.
6. After the admin select two players, they must say .ready for start the duel.
7. Every spawn, on KnifeRound, the captains will get 100 helmet + kevlar, 0 money, no c4 plant, no weapons only the knife, obviously.
8. Noboby can change their team except the admin who has the required access.
9. It supports when the captain has disconneted. When it happens, another random player will be  selected. 
If ain't there any spectator for be selected, 15 seconds countdown will be showed. If it arrives 0, the  selection will end.
10. It supports admin disconnect too. If ain't there any admin, the match will finish if the selection is running, the same if both captains have disconnected.
- Amxmodx version required
I'm using AMX Mod X Compiler 1.8.3-dev+4739, guess it works on all 1.8.3+ and 1.8.2 too, didn't test on 1.8.2

- Cvars
From dir/addons/amxmodx/configs/CaptainsPlugin/cp_cvars.cfg:

Code:
; Captains Plugin cvars settings
; The plugin will use those values

; Turn on/off the plugin
; If you want to turn the plugin activated, set it 1, if not, 0
duel_enabled "1"

; Spawn both captains close when it's knife round
; If you want to turn it activate, set it 1, if not, 0
duel_close_kniferound_spawn "1"

; Min players to start the duel
; If the players num is less than this, the duel can not start, otherwise,  it can
duel_minplayers "10"

; The weapon that'll be used on knife round
; Currently types: deagle or knife, otherwise, it'll automatically be knife
duel_weapon_mode "knife"

; Players need to say .ready to start the duel
; If you want to turn it activated, set it 1, if not, 0
duel_ready "1"

; Captains needs to say !say or !switch to choose in which team they want to start first.
; If you want to turn it activated, set it 1, if not, 0
duel_choose_side "1"


echo Cvars loaded!
- Change log
Spoiler
Attached Files
File Type: zip Captains Plugin.zip (10.4 KB, 411 views)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-21-2017 at 18:27.
EFFx is offline
 



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 03:43.


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