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

Auto-Mix (Pug) - By: p1Mp


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 10-05-2011 , 18:01   Auto-Mix (Pug) - By: p1Mp
Reply With Quote #1

Auto-Mix (Pug)
Plugin scripted by p1Mp AKA Diegork
Version 1.1.6




  • Introduction

Hello, My name is p1Mp and I'm from Israel. I've been scripting for 6 years, 2 years in AMX Mod X. This mode I called "Auto-Mix" which is widely known as a Pug mode, is an Automatic plugin which runs a 10 men scrim by a simple command!
I've worked on this plugin for 1 month and 2 weeks, it's been a really hard work but worthwhile. The reason for making this plugin was because I've got many many requests that pug modes are lacking and there are none which are good, therefore, I decided to script one.



  • 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:
  1. 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.
  2. 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!
  3. Edit file amxmodx/configs/maps.ini to which maps you want the plugin to randomally pick from at MAP VOTE.
  4. 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')
  5. Restart the server, and as everyone says on installation guides, Enjoy!


  • Credits

Okay, so, ofcourse this plugin had some helpers which helped me modularize the plugin and make it better, so I want to thanks to some really close people, that I really really appreciate and like, that helped me throughout the way with making this plugin:
  • fysiks - Wow, I love that man, even though he never wanted to talk to me through microphone and he thinks i'm wierd . Thanks man, really thanks, you helped me ALOT with this plugin, you were my encyclopedia afterall, huh.

(Also thanks for Cheesy Peteza for the AFK Kicker and Cheap_Suit for the Mute Menu)

And ofcourse thanks to the people who helped me testing, giving suggestions, and so on...


  • Screenshots of the plugin

See servers running this plugin: Click Here

  • Bugs Reporting

If you want to report any bug you found (I haven't found any, but ofcourse each plugin has holes that are not always seen, so if you discover, let me know, just post in this thread, I check it daily, ofcourse.



  • Changelog


Code:
October 5th, 2011 - Plugin published


v1.0.1 - Added a menu to get a player's approval if to bind 'N'

v1.0.2 - Fixed the bug at the 1st half ending when it kept switching teams.

v1.0.3 - Fixed Captains method bug (Not something you notice or know about)
v1.0.3 - Removed unnecessary chat messages
v1.0.3 - Fixed teammembers counter (detects if big amount of players left the match and gives 3 rounds before restarting match)

v1.0.4 - Fixed the server crash bug at the end of every match.

v1.0.5 - Blocked knife round bug (able to switch to pistol by continously switching weapons)

v1.0.6 - Added a feature of selecting team for the winning team in the knife round (Stay or Swap).

v1.0.7 - Minimizing code and making it more efficient & good looking.

v1.0.8 - Fixed Bans punishments from amx_ban to amx_banip

v1.0.9 - Fixed the bug of being able to change a team by 'retry'
v1.0.9 - Fixed Knife Round bug that when a team wins it still says "No team
 has won".

v1.1.0 - Fixed the CRASH problem after Knife Round.
v1.1.0 - Code optimization and making code more efficient with new methods.
v1.1.0 - Fixed "Stay or Swap" voting coming after Knife Round.
v1.1.0 - Score display (say !score) fixed and was set according to swapped teams.

v1.1.1 - Improved TK System - Once player TK'd enough that you can !voteban him, FF will turn off immediately until next round.
v1.1.1 - Improved TK System - If a player has TK'd and disconnected right after, you can still !voteban him since his details are stored.
v1.1.1 - Defusing points will not be included anymore in Ace / Mini-Ace countings.

v1.1.2 - Improved TK System by giving more warnings to players TeamKilling and giving them "1 more chance" before being able to be voted to ban.
v1.1.2 - Improved TK System, players will not lose their history if they reconnect ('retry') until the change of map ofcourse, so punishment is still available after 'retry's.
v1.1.2 - Fixed the Ace / Mini-Ace Bug, now it will be said to the correct persons.
v1.1.2 - Added a menu to easily change cvar values to enable/disable features on the auto-mix plugin, command: amx_automix_settings (console command || Admin Access Only)
v1.1.2 - Added few more Cvars to have more features on the server, allowing or not allowing things.
v1.1.2 - Added End-Of-Match summative *top players* Ranking of players, can be disabled/enabled by the menu.

v1.1.3 - Modifyed !cmds commands and what it prints to make it better looking and that it'll suit the new commands.
v1.1.3 - Fixed the End-Of-Match Ranking table that it will display names.
v1.1.3 - Created a new ranks system, when you gain/lose points on certain situations listed in amx_automix_settings, and by that points you are getting Ranked (6 ranks total), all prices can be easily set in-game by the admin of the server.
v1.1.3 - Fixed buying shield by 'shield' command in console bug (that it won't block if decided to block shield).
v1.1.3 - Added more features to the amx_automix_settings Admins Menu:
  • Not Ready / Ready - I added the Ready list as of who's ready, and these can be set to "Not ready" only display, "Ready" only displaying, or both.
  • Enable / Disable Maps vote
  • Match Rankings table at the end of the round (fixed)
  • Teams Tagging - You can now enable/disable Team A/Team B
  • (Mini) Ace Announcements - You can disable those Ace / Mini Ace announces of players
  • AFK Kick - you can disable/enable AFK kicks at matches.
  • Not Ready Pos - You can set the Not Ready Position list on the screen
  • Ready Pos - You can set the Ready List position on the screen
  • Ready & Not Ready pos on the screen is EXACT since its by X & Y location.
  • Ranks System - Enable / Disable the Ranks System I created with the points, when you're being ranked on the server by the pug plugin.
  • Ranks System Messages - Enable / Disable the message of when you gain / lose points (in chat)
  • Points Values - Set the points values, ex: how much points will you gain when killing and lose when dieing, etc...
  • Ranks Points Prices - Set UNTIL what amount the player will be the rank specified (of the ranks system)
v1.1.3 - Added !startmatch command (ADMINS Only) to force a match to start, no matter how many players or what the conditions are, it will run, even after the map change. v1.1.3 - Added !stopmatch command (ADMINS Only) to force a match to stop, it will stop no matter what and restart the server. v1.1.3 - Added a donation button on the thread, please donate if you want to show support and appreciation toward my work ;) v1.1.4 - Added Multi-Lingual System. Is your language missing? Help translate the plugin *HERE* v1.1.4 - Fixed the right timing announce of Ace / Mini-Ace v1.1.4 - Improved and added features to the amx_automix_settings (Admins console command) v1.1.4 - Fixed CPU leaks that happened to few people, not everyone, for some reason, server does not crash now at end of match or random places. v1.1.4 - Fixed setting points values in amx_automix_settings for the ranks system. v1.1.4 - Added 'Language' option to the players' menu. v1.1.5 - Fixed some error logs of strings formatted incorrectly, problem comes from the ML system, but fixed. v1.1.5 - Fixed bug of match is suddenly stuck at captains vote, and not continuing anymore because of some "AFK" report from the plugin. v1.1.5 - Fixed item=MENU_EXIT problem at player's menu when menu_display is being called. v1.1.5 - Fixed some bugs from the pervious version so it should run better now. v1.1.6 - Fixed client_cmd of killing a player in specific events, did not slay players before (For example: captain mode) v1.1.6 - Added new Language - Deutch (in the .zip file updated auto-mix.txt file) July 23rd, 2013 - Plugin Approved.
  • Author Contact


Just to make something sure, p1Mp is ME, Diegork.
Okay, lets put it this way: p1Mp is Diegork (p1Mp is my nickname in STEAM).

Okay, so if you have any questions or suggestions you may want to say, make sure to contact me within the next ways:
  • Skype - My Skype is diegork759, you can add me there with a message saying "Its about your pug mode" or anything creative that comes up your mind And I will confirm and talk to you as soon as I can.
  • Steam (Friends) - My friends is: dougtd2, make sure to add me if you want to talk to me, because we'll talk .
  • Forum PM - You can always send me a Private Message on the forums, I'll reply as soon as I see the message.

Interested in purchasing quality plugins from the author (p1Mp)? You may contact him for the following:
  • Hit And Run
  • Deathrun
  • Jail Break
  • Oberon Monster (Controllable by Players)
  • BaseBuilder with new Additions & changes


Donations

Well, as you know I really am working hard on this plugin, and others that I am willing to publish soon to AlliedModders, and it's really hard to combine these with school life and with my other issues as life such as getting a driving license or other studies I do, and I would be really glad if you could show me your appreciation towards my plugin and hard work, by donating me. I really need this money weither because I'm trying to develope myself, go to studies, get a driving license, and all of these are costing too much, and I'm just an average guy with not lots of money, so that would be really helpful to me, and when some of you who doesn't have problem with money, could help me alot



So here is my donation button, thanks for the ones who do show support and appreciation, not just by donating, it helps me alot to carry on and do what I do


IMPORTANT NOTE: In the plugin there is a ranking stats that is actually the ranking stats of AMX Mod X, I changed the commands so it will suit all the '!' commands. The replaced plugin is stats_pug.amxx in the attachments. So all you have to do is place that one and enable it on plugins.ini instead of that plugin ---> statsx.amxx

Attention: If you're having problems with the commands such as !hp and !dmg, when it is saying "Server has disabled that option.", the solution is right here: Link

You can download compiled plugins here

Have fun!


pimpspug - 4914 downloads.
Attached Files
File Type: sma Get Plugin or Get Source (stats_pug.sma - 23444 views - 50.7 KB)
File Type: sma Get Plugin or Get Source (pimpspug.sma - 20035 views - 123.5 KB)
File Type: zip Auto-Mix By p1Mp v1.1.zip (62.2 KB, 22248 views)

Last edited by Diegorkable; 07-30-2013 at 10:02. Reason: Updated logs
Diegorkable is offline
Old 10-05-2011, 18:09
enjoi.
This message has been deleted by enjoi.. Reason: nvm
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-05-2011 , 18:12   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #2

Add .ready and .gaben also make it work for teamchat. Also remove that FF shit. Also use cevo configs.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 10-05-2011 , 18:18   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #3

Nice!
__________________
kramesa is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 10-05-2011 , 18:19   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #4

Quote:
Originally Posted by enjoi. View Post
Add .ready and .gaben also make it work for teamchat. Also remove that FF shit. Also use cevo configs.
About the .ready it doesn't have to be as the pervious plugins, with the command ".ready", I wanted to make something different. What is .gaben? I don't know. FF has a CVAR which you can turn off in the code or in-game command if you don't want. And I said in my thread that you can place any CFG files you want, so its a mode that will pretty much work according to what you configure it to.

Thanks for posting though.
Diegorkable is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-05-2011 , 18:20   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #5

.gaben is on another server i really dont know LOL
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-05-2011 , 18:22   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #6

This might not get approved just saying cuz its Redundant.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 10-05-2011 , 18:29   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #7

Look, the whole plugin is about the progress of the scrim itself + a protection system for TK which can be disabled easily. Also a mute menu which I think is really necessary cuz other players will not interrupt you and its necessary in pug modes. Other than that, like the AFK kicker, it can be removed, but since I can disable it maybe we can leave it there.

Still, if a Plugin approver finds something that is useless in the mode, like redundant as you said, he could tell me and I'll remove it, I don't think approvers here just remove the plugin cuz its redundant, there's always an opportunity to remove the "redundant parts".

Last edited by Diegorkable; 10-05-2011 at 18:31.
Diegorkable is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 10-05-2011 , 18:29   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #8

Quote:
Originally Posted by enjoi. View Post
This might not get approved just saying cuz its Redundant.
I don't think that it is redundant, it automaticly starts a mix, without any admin online while all the others need one (i think...) .

It's a very cool idea actually :D
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-05-2011 , 18:30   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #9

Good job. I know a lot of people were having problems with YAP, so hopefully people are satisfied with this one.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 10-05-2011 , 18:32   Re: Auto-Mix (Pug) - By: p1Mp
Reply With Quote #10

Quote:
Originally Posted by nikhilgupta345 View Post
Good job. I know a lot of people were having problems with YAP, so hopefully people are satisfied with this one.
YAP = ?
Diegorkable 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 18:10.


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