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

AMX Team Switcher


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Johnny got his gun (102)
KaOs
Senior Member
Join Date: Apr 2004
Old 03-18-2005 , 03:50   AMX Team Switcher
Reply With Quote #1

Current Version: 1.0

I just got so sick of all these team switchers that either didn't work
at all, or didn't work properly. Some of them didnt wait for the user
to die. Some of them didn't let you switch entire teams, so I decided
ok fine, i'll just make my own. Two cokes, one sandwich, and 2 hours
later I was finished!

Enjoy!


CVARs
amx_team_spawn - Respawn (1) or wait until the player dies (0) when they switch? (Def: 0)

Required modules:
CStrike
Fun

Code:
/*########################################################################## 
## 
## -- www.SteamTools.net 
##      ___       ___  ___  __    __       _____   _____       ___       ___  ___   _____  
##     /   |     /   |/   | \ \  / /      |_   _| | ____|     /   |     /   |/   | /  ___/ 
##    / /| |    / /|   /| |  \ \/ /         | |   | |__      / /| |    / /|   /| | | |___  
##   / / | |   / / |__/ | |   }  {          | |   |  __|    / / | |   / / |__/ | | \___  \ 
##  / /  | |  / /       | |  / /\ \         | |   | |___   / /  | |  / /       | |  ___| | 
## /_/   |_| /_/        |_| /_/  \_\        |_|   |_____| /_/   |_| /_/        |_| /_____/ 
##                                                        
##          |__                   |__  o _|_   ___   __ __  o |__,  ___  
##      --  |__) (__|     (__(__( |  ) |  |_, (__/_ |  )  ) | |  \ (__/_ 
##                  |                                                    
## 
##   I just got so sick of all these team switchers that either didn't work
## at all, or didn't work properly. Some of them didnt wait for the user
## to die. Some of them didn't let you switch entire teams, so I decided
## ok fine, i'll just make my own. Two cokes, one sandwich, and 2 hours
## later I was finished!
## 
##   Enjoy! 
## 
## 
## CHANGELOG 
##------------------------------------------------------------------------ 
## 1) This is the first version -- no changes
## 
## 
## INSTALLATION 
##------------------------------------------------------------------------ 
## 1) Unzip (which you may have done already) 
## 2) Place 'amx_teams.amxx' in 'cstrike/addons/amxmodx/plugins' 
## 3) Add a line in 'configs/plugins.ini' containing 'amx_teams.amxx' 
## 4) Add the optional CVARs to your 'server.cfg'
## 5) -- Visit www.SteamTools.net and enjoy your new plugin! 
## 
## 
## THE COMMANDS
##------------------------------------------------------------------------ 
## amx_team <userid, nick, authid, @team> <CT, TE, SPEC>
## - - -
## Example #1:
##    amx_team mike te
##    // Will switch 'whitemike' to the 'terrorist' team
##
## Example #2:
##    amx_team @CT TE
##    // Will switch all clients on CT team to TE team
##
## 
## THE CVARs 
##------------------------------------------------------------------------ 
## 
## amx_team_spawn
##   - Respawn or wait until the player dies when they switch?
##
##     - When set to 1 even if the player is alive they will respawn
##        at their designated spawn point. When set to 0 and the player
##        is alive it will just wait until they die to switch them.
##
##     + Default is 0
## 
## 
##########################################################################*/
Attached Files
File Type: sma Get Plugin or Get Source (amx_teams.sma - 7182 views - 7.2 KB)
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Breeze
Junior Member
Join Date: Mar 2005
Old 03-18-2005 , 08:09  
Reply With Quote #2

This is switching people on what grounds? in other words what is it balancing and how to make it work effectively? is this a ptb or just an admin swap?
Breeze is offline
Send a message via AIM to Breeze
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-18-2005 , 08:24  
Reply With Quote #3

Looks to me just like a admin swap.

You dont have to post the compiled version and the source in 2 diff attachments btw.

Id suggest removing the compiled version
BigBaller is offline
KaOs
Senior Member
Join Date: Apr 2004
Old 03-19-2005 , 15:16  
Reply With Quote #4

There seems to be a bug I can't quite figure out, it doesn't always know when a person dies.. anyone care to check this out?
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
XxKpAznGuyxX
Senior Member
Join Date: Dec 2004
Location: EARTH!!
Old 03-19-2005 , 15:47  
Reply With Quote #5

can you make it so you can switch them to spectator also? but not respawn the spectator
__________________
24/7 Chicago Terror-8.9.2.120:27015
XxKpAznGuyxX is offline
Send a message via AIM to XxKpAznGuyxX Send a message via MSN to XxKpAznGuyxX
The Best POW
Junior Member
Join Date: Mar 2005
Old 03-19-2005 , 16:43  
Reply With Quote #6

heh about that bug well i dunno you should add something to the .sma too only switch at round end
like when it says the winning team. i dunno the command because i suck at scripting but im good at porting so gl with that when u fix it tell me i want this on my server
__________________

I am 75% addicted to Counterstrike. What about you?
The Best POW is offline
Send a message via AIM to The Best POW Send a message via MSN to The Best POW
KaOs
Senior Member
Join Date: Apr 2004
Old 03-19-2005 , 17:32  
Reply With Quote #7

Quote:
Originally Posted by XxKpAznGuyxX
can you make it so you can switch them to spectator also? but not respawn the spectator
You can! The code is SPEC
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
XxKpAznGuyxX
Senior Member
Join Date: Dec 2004
Location: EARTH!!
Old 03-19-2005 , 17:45  
Reply With Quote #8

Oh! I didn't see that I must have this plugin now!
__________________
24/7 Chicago Terror-8.9.2.120:27015
XxKpAznGuyxX is offline
Send a message via AIM to XxKpAznGuyxX Send a message via MSN to XxKpAznGuyxX
The Best POW
Junior Member
Join Date: Mar 2005
Old 03-19-2005 , 18:51  
Reply With Quote #9

so did my idea solve the problem?
__________________

I am 75% addicted to Counterstrike. What about you?
The Best POW is offline
Send a message via AIM to The Best POW Send a message via MSN to The Best POW
StopSpazzing
Member
Join Date: Jun 2005
Location: California
Old 11-08-2005 , 22:23  
Reply With Quote #10

I want this plugin aswell. Is it fixed? Btw does it switch everyone from one team to the other using amx_team @CT TE ? So all t's go ct and ct's go t? Right?
StopSpazzing is offline
Send a message via AIM to StopSpazzing Send a message via Yahoo to StopSpazzing
Reply



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


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