11-29-2016, 07:43 PM
#include <amxmodx>
#include <amxmisc>
#include <csx>
Explanation about the plugin
This plugin is basically running a mix (10-men scrim) automatically, with a simple command.
Here are the stages:
It waits for 10 players to type !add in order to be 'ready', starts a vote map, changes to the map that was chosen (picks 4 random maps from configs/maps.ini), makes a teams vote (how teams should be organized), starts a knife round (winner team gets to be in the CT team), and then starts the scrim, after 15 rounds switching teams and when a team reaches score 16 she wins (There are included ACE and MINI ACE when you kill 4 / 5 people, also there are tags automatically added of the teams + score is being shown as for teams (A or B, and not CT or T)
Commands
These are the commands for a client (chat commands ofcourse):
!rr - Restarting round (Only for ADMINS)
!restart - Restarting server (Only for ADMINS)
!add / !unadd - Being "ready" before a match starts, once 10 players have typed !add it starts a match.
!credits - Shows the author's name (It will be appreciated if it will not be removed from the SMA, I did not put my name everywhere, don't worry)
!cmds / !commands - Prints to chat all of the available chat commands.
!menu - Opens the Player's menu.
!voteban - There's a wise system within the plugin that detects if someone's TKing just to be annoying, if he's detected by the mode, players can type !voteban and vote him for ban (Can NOT ban anyone you want, only the ones who TK continously), also people gets banned automatically for 10 minutes if they TK people massively. (Can be disabled by a CVAR)
!score - Shows the teams current score (Only when match starts).
amx_automix_settings - Access to Administrators ONLY! This is a console command where you can change different of settings about the Auto-Mix Plugin, mostly Plugin Cvars and max players.
Plugin Cvars
I'm going to list here all of the mode's cvars, which will enable / disable things in the mode (such as Knife round, detecting TK, and so on...),
Mostly, all of the cvars will be ON as default, also, there are AFK Kicker cvars which belong to another author that I will put in the credits later, I was too lazy to build an AFK kicker JUST for this plugin so I copied from another plugin, The AFK Kicker will detect if the player's AFK only after a match has started.
Here are the CVARS list:
pug_ffvote - Before each match that starts, there's a vote if weither to ENABLE / DISABLE FriendlyFire.
pug_kniferound - A cvar that indicates if a knife round will happen or not.
pug_players - A cvar that says how much players are needed in order to start a match. (Default: 10)
pug_detecttk - A cvar that indicates weither the system will try to detect TKers or not (Includes the entire !voteban system and auto-ban for massive TK)
mutemenu - Set 1/0 to Enable/Disable the mute menu.
pug_allowshield - Set 1/0 to Enable/Disable using Riot Shield on the server (On Knife round the shield will be disabled always).
pug_mapvote - Set 1/0 To Enable/Disable Map voting after everyone is ready (has typed !add), Teams vote will start right away if set 0.
pug_ranking - Set 1/0 To Enable/Disable a summative *top players* Ranking at the end of every match.
mp_afktime - Kick people AFK longer than this time (Credits to another plugin of AFK Kicker, Default: 40 seconds)
NOTE: You can type in console amx_automix_settings to access all Cvars easily and change them easily via a menu (ADMINS Only Access).
Defines
Here are 3 defines that are related to the AFK Kicker I've taken from another plugin, copied EXACTLY as in the original:
PHP Code:
#define MIN_AFK_TIME 30 // I use this incase stupid admins accidentally set mp_afktime to something silly.
#define WARNING_TIME 15 // Start warning the user this many seconds before they are about to be kicked.
#define CHECK_FREQ 5 // This is also the warning message frequency.
Here is a #define that is connected to the Pug mode:
PHP Code:
#define PREFIX "[Auto-Mix]" // Before each message a PREFIX is printed, this is what will be printed. (Default: [Auto-Mix])
Plugin installation
Okay, so before I start listing you here guys all the stages in installing the mode (yeah, beside putting it in plugins folder there are other things), I'll tell you what the mode requires to have (by terms of files) to work PROPERLY.
The mode will require those files to be installed within your server FTP:
pug.cfg - The pug.cfg file will include inside all the server commands you want the plugin to send to the server's console when a match has STARTED! (such as mp_startmoney 800), I will put my files but you can feel free to edit it or just put your own.
practice.cfg - You will also have to put a practice.cfg file in your cstrike folder, the same as pug.cfg, but that'll be executed when there's no match running (Practice cvars)
pug.ini - This file will have to be placed in amxmodx/configs folder, it is necessary to help the mode detect weither its after a map change or not (It shouldn't matter for you, just make sure it's there! IMPORTANT NOTE: Make sure there is '0' written in the file at installation, simple 0 (zero), no more)
Okay, so now when we made clear of what should be installed, lets go to our standard list of how to install the mode:
Take the pug.cfg and practice.cfg files and make sure to upload them to your cstrike/ folder! You can take the original ones from my upload, or just make yours, explanation about them are listed above.
Take the pug.ini file and make sure it's uploaded to cstrike/addons/amxmodx/configs, CAUTION! Make sure there's written 0 in there when installing!
Edit file amxmodx/configs/maps.ini to which maps you want the plugin to randomally pick from at MAP VOTE.
Make sure pimpspug.amxx is in the addons/amxmodx/plugins folder, and that you wrote the line 'pimpspug.amxx' in your configs/plugins.ini file (just add a line there saying 'pimpspug.amxx')
Restart the server, and as everyone says on installation guides, Enjoy!
Download: http://node1.lamdaprocs.com/index.php/s/4gXOczjLFkkZMk1
#include <amxmisc>
#include <csx>
Explanation about the plugin
This plugin is basically running a mix (10-men scrim) automatically, with a simple command.
Here are the stages:
It waits for 10 players to type !add in order to be 'ready', starts a vote map, changes to the map that was chosen (picks 4 random maps from configs/maps.ini), makes a teams vote (how teams should be organized), starts a knife round (winner team gets to be in the CT team), and then starts the scrim, after 15 rounds switching teams and when a team reaches score 16 she wins (There are included ACE and MINI ACE when you kill 4 / 5 people, also there are tags automatically added of the teams + score is being shown as for teams (A or B, and not CT or T)
Commands
These are the commands for a client (chat commands ofcourse):
!rr - Restarting round (Only for ADMINS)
!restart - Restarting server (Only for ADMINS)
!add / !unadd - Being "ready" before a match starts, once 10 players have typed !add it starts a match.
!credits - Shows the author's name (It will be appreciated if it will not be removed from the SMA, I did not put my name everywhere, don't worry)
!cmds / !commands - Prints to chat all of the available chat commands.
!menu - Opens the Player's menu.
!voteban - There's a wise system within the plugin that detects if someone's TKing just to be annoying, if he's detected by the mode, players can type !voteban and vote him for ban (Can NOT ban anyone you want, only the ones who TK continously), also people gets banned automatically for 10 minutes if they TK people massively. (Can be disabled by a CVAR)
!score - Shows the teams current score (Only when match starts).
amx_automix_settings - Access to Administrators ONLY! This is a console command where you can change different of settings about the Auto-Mix Plugin, mostly Plugin Cvars and max players.
Plugin Cvars
I'm going to list here all of the mode's cvars, which will enable / disable things in the mode (such as Knife round, detecting TK, and so on...),
Mostly, all of the cvars will be ON as default, also, there are AFK Kicker cvars which belong to another author that I will put in the credits later, I was too lazy to build an AFK kicker JUST for this plugin so I copied from another plugin, The AFK Kicker will detect if the player's AFK only after a match has started.
Here are the CVARS list:
pug_ffvote - Before each match that starts, there's a vote if weither to ENABLE / DISABLE FriendlyFire.
pug_kniferound - A cvar that indicates if a knife round will happen or not.
pug_players - A cvar that says how much players are needed in order to start a match. (Default: 10)
pug_detecttk - A cvar that indicates weither the system will try to detect TKers or not (Includes the entire !voteban system and auto-ban for massive TK)
mutemenu - Set 1/0 to Enable/Disable the mute menu.
pug_allowshield - Set 1/0 to Enable/Disable using Riot Shield on the server (On Knife round the shield will be disabled always).
pug_mapvote - Set 1/0 To Enable/Disable Map voting after everyone is ready (has typed !add), Teams vote will start right away if set 0.
pug_ranking - Set 1/0 To Enable/Disable a summative *top players* Ranking at the end of every match.
mp_afktime - Kick people AFK longer than this time (Credits to another plugin of AFK Kicker, Default: 40 seconds)
NOTE: You can type in console amx_automix_settings to access all Cvars easily and change them easily via a menu (ADMINS Only Access).
Defines
Here are 3 defines that are related to the AFK Kicker I've taken from another plugin, copied EXACTLY as in the original:
PHP Code:
#define MIN_AFK_TIME 30 // I use this incase stupid admins accidentally set mp_afktime to something silly.
#define WARNING_TIME 15 // Start warning the user this many seconds before they are about to be kicked.
#define CHECK_FREQ 5 // This is also the warning message frequency.
Here is a #define that is connected to the Pug mode:
PHP Code:
#define PREFIX "[Auto-Mix]" // Before each message a PREFIX is printed, this is what will be printed. (Default: [Auto-Mix])
Plugin installation
Okay, so before I start listing you here guys all the stages in installing the mode (yeah, beside putting it in plugins folder there are other things), I'll tell you what the mode requires to have (by terms of files) to work PROPERLY.
The mode will require those files to be installed within your server FTP:
pug.cfg - The pug.cfg file will include inside all the server commands you want the plugin to send to the server's console when a match has STARTED! (such as mp_startmoney 800), I will put my files but you can feel free to edit it or just put your own.
practice.cfg - You will also have to put a practice.cfg file in your cstrike folder, the same as pug.cfg, but that'll be executed when there's no match running (Practice cvars)
pug.ini - This file will have to be placed in amxmodx/configs folder, it is necessary to help the mode detect weither its after a map change or not (It shouldn't matter for you, just make sure it's there! IMPORTANT NOTE: Make sure there is '0' written in the file at installation, simple 0 (zero), no more)
Okay, so now when we made clear of what should be installed, lets go to our standard list of how to install the mode:
Take the pug.cfg and practice.cfg files and make sure to upload them to your cstrike/ folder! You can take the original ones from my upload, or just make yours, explanation about them are listed above.
Take the pug.ini file and make sure it's uploaded to cstrike/addons/amxmodx/configs, CAUTION! Make sure there's written 0 in there when installing!
Edit file amxmodx/configs/maps.ini to which maps you want the plugin to randomally pick from at MAP VOTE.
Make sure pimpspug.amxx is in the addons/amxmodx/plugins folder, and that you wrote the line 'pimpspug.amxx' in your configs/plugins.ini file (just add a line there saying 'pimpspug.amxx')
Restart the server, and as everyone says on installation guides, Enjoy!
Download: http://node1.lamdaprocs.com/index.php/s/4gXOczjLFkkZMk1