Raised This Month: $ Target: $400
 0% 

Auto Switch Teams Every X Rounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   ConnorMcLeod (74)
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-01-2010 , 15:05   Auto Switch Teams Every X Rounds
Reply With Quote #1

Auto Team Switch Every X Rounds

Author: nikhilgupta345

Info:
This plugin allows you to switch sides of teams every set number of rounds. Also gives a command to restart the number of rounds played.

Cvars:
amx_atsrounds - sets the number of rounds before a team switch occurs.

Commands:
amx_roundrestart - restarts the number of rounds that have been played.
say /roundnumber - displays the amount of rounds that have been played.

Credits:
Nextra - Giving suggestions and making the code more efficient.
Tirant - Giving suggestions as well and providing code for the delay.
Connormcleod - Final suggestions on optimizing code.

Changelog:
Code:
v1.0 - Initial release
v1.01 - Fixed Bugs - Optimized Code
v1.1 - Fixed crashing with certain amount of people.
v1.1.1 - Added new client command - /roundnumber, which displays the amount of rounds that have passed.
v1.2 - Further optimized. Changed name of cvar to make it easier to remember. Commented.
Attached Files
File Type: sma Get Plugin or Get Source (autoteamswitch.sma - 7160 views - 4.5 KB)

Last edited by nikhilgupta345; 11-04-2010 at 19:20.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
 



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 17:37.


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