View Full Version : Admin Player Team Switch and Scramble Menu
Recode Planed!
Plugin makes admins abel to transfer a player in the other Team with the Sourcemod Admin Menu
this plugin integrates 2 menu's into, sourcemod admin menu --> player menu
with one you can switch players direct and with the other after player death
Console Commands:
sm_swmenu <-- open direct switch menu
sm_swadmenu <-- open switch after death menu
sm_swteams <-- switches the teams direct
sm_swspec <-- switch player to spectator
Convars
sm_switch_event (0/1)
0 = Switch on Round End (for round based games like cs:s)
1 = Switch After Death (for deathmatch mod's like TF2)
Changelog:
for older changes
look @ changelog.txt
new in v.0.2.6
+fixed spectator switch bug in css edition
new in v.0.2.5
+removed mod detection in css edition
new in v.0.2.4
+Fixed a Critical Bug in Both editions (defined a String instead of a Int)
new in v.0.2.2
+Added a special CS:S version
new in v.0.2.2
+Added a special CS:S version
new in v.0.2.2
+Now all CS:S Player Switch Bugs will be fixed
new in v.0.2.1
+added mod detection and compatibility with insurgency.
new in v.0.2.0
+team scramble option in player menu
TODO:
+add the ability to use the player switch function's in the console without the menu
R.Hehl
If somebody want to contact me directly or want to get Plugin Update news over steam join this Group: http://steamcommunity.com/groups/Player-Switch-Plugin
Please Note the second Plugin (Teamnumberretriver) is only to retrive informations i need to integrate support for a unsupported mod.
Tested with Original v.0.2.4:
TF2 DoD:S
Supportedmods by CS:S version v.0.2.5:
CS:S
Please post it if it run's on a mod who is not listed yet!!!
Tekniqal
11-04-2007, 16:24
eh, you should build it into the default SM menu
will this work with TF 2 as well?
Yea please build this into the sourcemod menu.
@abnvet (http://forums.alliedmods.net/member.php?u=17137)
Yes it works with TF2 i Test my plugins with TF2 (i dont have a HLDM,DOD:Sor a CS:S Server on my root installed but many TF2 :D)
and about integrating into Sourcemod menu, i will look how i can do this and upload then a new version if it runs
add Swap when end of round like in Mani Admin
who want's to see swap after death or switch after round end in v0.0.3 ?
//// switchmenu.sp
// switchmenu.sp(42) : warning 217: loose indentation
// switchmenu.sp(43) : warning 217: loose indentation
// switchmenu.sp(44) : warning 217: loose indentation
// switchmenu.sp(42) : warning 204: symbol is assigned a value that is never use
d: "name"
// switchmenu.sp(41) : warning 204: symbol is assigned a value that is never use
d: "found"
// switchmenu.sp(81) : warning 217: loose indentation
// switchmenu.sp(93) : warning 217: loose indentation
// Header size: 2528 bytes
// Code size: 2208 bytes
// Data size: 720 bytes
// Stack/heap size: 16384 bytes; Total requirements: 21840 bytes
//
// 7 Warnings.
//
// Compilation Time: 0,89 sec
// ----------------------------------------
Press enter to exit ...
what do you want to say me with this ? or do you only want to troll ?
Pvt.Snail
11-09-2007, 05:29
who want's to see swap after death or switch after round end in v0.0.3 ?
Swap after death is appropriate.
decaprime
11-10-2007, 11:13
A couple of suggestions:
-Prefix the names with the team: IE: [BLU]player1 [BLU]playerX [RED]playerW
-Sort the menu somehow(either by team or player name)
-I personally would like to see the menu reappear after selection, if I want to swap some players to manually balance out clans and what not I don't want to have to keep renavigating the menu.
Nice Idea i will make it after i have published my TF2 MYSQL Stats Plugin
CrimsonGT
11-11-2007, 20:33
I would like to see...
1) Swap after death
2) The ability to swap two players. Right now you can do this manually, by switching one, then switching the other. The ability to select which ones to switch, and then have it broadcast to chat saying Player1 will be switch with Player2 on Death.
The ability to maybe randomize teams on round end would be really cool too. Not sure how hard this is, but you know how when one team is completely stacked, and the other seems to be all noobs. Maybe make it so it switches every other player with everyone other player from other team on next round.
I would like to see...
1) Swap after death
2) The ability to swap two players. Right now you can do this manually, by switching one, then switching the other. The ability to select which ones to switch, and then have it broadcast to chat saying Player1 will be switch with Player2 on Death.
Done .... ^^
CrimsonGT
11-12-2007, 16:48
Woah! Awesome, thanks =D
have anyone a good idea for the next version of this plugin or a good idea for a new plugin ?
Tekniqal
11-14-2007, 23:13
r5053,
Are you aware of "mp_switchteams" in tf2. I just came across that command and thought it might be useful to you.
what do you meen ? You wan't a command to switch the team of all players ? or does this command already exist anyewhere ?
Tekniqal
11-15-2007, 21:52
I dont know what that command does lol. Just thought if you didnt know about it you might. (on a side note, entire teamswap option may be a good idea). And also maybe add in mp_scrambleteams cuz thats a tf2 command that I recently found.
1) Swap after death
Done .... ^^
I think thats its mistake. This option not working at all :)
I think thats its mistake. This option not working at all :)
tell me more
if i tested it with tf2 it work's
Tekniqal
11-18-2007, 17:50
The menu just shows swap player to other team and then gives you a list of all the players.
EDIT: the problem is that we have to press "next" page and select it from there thats why I didnt see it.
?bug:
This is for the 'Switch on Death' function. Whenever you switch a player from the opposite team and happen to kill that player before him/her being switched, then that kill is counted as an teamkill.
In other, more plain words (valid for cs:s):
- I am CT
- Player X is T
- I switch player X to CT using the "Switch after death" function
- I kill Player X; hence, player X is being switched to CT
- I get a teamkill and am being slayed next round
o0 this can't be, but i will test ist soon
edit: now i understood what you mean, a update will be applyed soon that will replace on css switch on death with switch on round end
(until now i have test my plugin's only with tf2)
Noobtastic
11-19-2007, 22:40
After you integrated this Switch Menu into the standard SourceMod menu, did you just delete the option to open it via sm_swmenu? Because I'd like to use it in Super Menu, but it says sm_swmenu is an unkown command.
If you could, please add it back in :).
switchmenu.sp(194) : warning 219: local variable "maxplayers" shadows a variable at a preceding level
switchmenu.sp(194) : warning 219: local variable "target" shadows a variable at a preceding level
switchmenu.sp(193) : warning 204: symbol is assigned a value that is never used: "found"
switchmenu.sp(189) : warning 204: symbol is assigned a value that is never used: "target"
switchmenu.sp(187) : warning 203: symbol is never used: "maxplayers"
switchmenu.sp(187) : warning 204: symbol is assigned a value that is never used: "name"
any ideea?
After you integrated this Switch Menu into the standard SourceMod menu, did you just delete the option to open it via sm_swmenu? Because I'd like to use it in Super Menu, but it says sm_swmenu is an unkown command.
If you could, please add it back in :).
i will readd it in the next release when i make change after death compatible to CS:S
switchmenu.sp(194) : warning 219: local variable "maxplayers" shadows a variable at a preceding level
switchmenu.sp(194) : warning 219: local variable "target" shadows a variable at a preceding level
switchmenu.sp(193) : warning 204: symbol is assigned a value that is never used: "found"
switchmenu.sp(189) : warning 204: symbol is assigned a value that is never used: "target"
switchmenu.sp(187) : warning 203: symbol is never used: "maxplayers"
switchmenu.sp(187) : warning 204: symbol is assigned a value that is never used: "name"any ideea?
Is this a Seriously request ?
when yes plugin is still in development, but it's running fine
This are only warning's because i haven't cleaned the code yet from old unused variables.
But it takes no efekt.
Hi people can anyone help me on testing it on cs:s (i've only tf2 server's and don't want to install a cs:s server only for this plugin) please write me on icq 87-47-93 if you wan't to test a beta with a for cs:s optimized switch after death function
Noobtastic
11-20-2007, 16:45
I don't use ICQ, but if you'd like to send the plugin to
[email protected], I'll test it on our server(s).
Hi people can anyone help me on testing it on cs:s (i've only tf2 server's and don't want to install a cs:s server only for this plugin) please write me on icq 87-47-93 if you wan't to test a beta with a for cs:s optimized switch after death function
Hey, I'd be happy to test it for you, just attach it here in the forum ;)
Otherwise, I'll see if I find some time to contact ya via ICQ.
thx 4 reply i need some one with an instand messenger icq, or ofcourse steam goes 2, because it must be tested on demand during i develop it.
If you wan't to contact or support me or if you are a plugin developer or you have a good idea for a existing or new plugin join this steamcommunity group http://steamcommunity.com/groups/smdevel/
Noobtastic
11-22-2007, 09:57
thx 4 reply i need some one with an instand messenger icq, or ofcourse steam goes 2, because it must be tested on demand during i develop it.Add me on Steam Friends and I'll see what I can do :).
http://steamcommunity.com/id/noobtastic
Noobtastic
11-23-2007, 09:05
I'm using the beta, and it seems to be working fine. So as I said before, nice work ;).
dmw_Whitey
11-24-2007, 06:55
Great plugin. Would it be possible to add the option to move a player to spec?
Great plugin. Would it be possible to add the option to move a player to spec?
yes this is np next release this will be added
not sure whether this will be possible, but:
could you add a single Admin Menu entry for your plugin called "Switch player". Once you select that, you can then select from the options 'Switch now', 'Switch after Death', 'Switch team' and 'Switch to Spec'.
At the moment there is little overview in the menu all the different switch options.
Thanks.
I,ve planed this already for the next version
gnumsploitz
11-26-2007, 22:52
After using sm_swspec in TF2, the targetted player is unable to rejoin a team and continue playing. He/she is stuck spectating until reconnecting to the server.
CrimsonGT
11-27-2007, 06:08
After using sm_swspec in TF2, the targetted player is unable to rejoin a team and continue playing. He/she is stuck spectating until reconnecting to the server.
Yeah, once they get moved to specatator they are stuck as spectator lol. Be nice to have this fixed :) Thanks for such a great plugin, can't wait until its finished.
next Plugin will be relesed if Valve fixed the TF2 server bug's
It make's no fun to develop a plugin with the actual bug's.
My bigest problem is the _restart bug that let the server freeze instead restarting it. (restarting is he only way to restart the plugins and Mod'S cleanly).
Valve say they will fix it fast with the next tf2 update. So i wait for the bug fix.
After it i will recode the complete Plugin and redesign the menu.
There is another cs:s bug:
- Switching myself to the opposite team after death
- I do not die by the end of the round
- New round starts and I am being slayed, which is counted as a self-kill (-1kill +1 death)
There is another cs:s bug:
- Switching myself to the opposite team after death
- I do not die by the end of the round
- New round starts and I am being slayed, which is counted as a self-kill (-1kill +1 death)
thx 4 the bug report i will check it after valve fixes the bug's in the actual TF2 servers
Noobtastic
12-14-2007, 06:09
Would it also be possible to integrate a command that works like this:
@sw (part of) name -> switches the targetted player to the opposite team
It would make the plugin complete :). Great work so far.
Would it also be possible to integrate a command that works like this:
@sw (part of) name -> switches the targetted player to the opposite team
It would make the plugin complete :). Great work so far.
after valve updates the tf2 server's i will continue coding my plugins
server update is released now i start coding again :D
compbry15
12-24-2007, 07:11
Would it also be possible to integrate a command that works like this:
@sw (part of) name -> switches the targetted player to the opposite team
It would make the plugin complete :). Great work so far.
I too would like to see this. I really dont like traversing the menus, and would like to be able to manually do it with a command.
Also it would be nice to be able to do the following to swap two players on opposite teams:
@swap "player1" "player2"
This would help for when the teams are even and you don't want to uneven them. Often times I will swap a player and he will be put right back due to auto team balancing.
Hello
Is it possible to add the feature to switch players with a clantag to the same team?
And also switching players using a (say) command where you only need a part of his name or by using userid# (some people have really weird/long names).
My server has 40 slots, takes me a long time to switch a few players and actualy finding them in the menu.
Thanks!
/edit, just found this error log
L 12/28/2007 - 11:47:21: SourceMod error session started
L 12/28/2007 - 11:47:21: Info (map "emp_mvalley") (file "errors_20071228.log")
L 12/28/2007 - 11:47:21: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:47:21: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:47:21: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::OnClientPostAdminCheck()
L 12/28/2007 - 11:49:54: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:49:54: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:49:54: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::OnClientPostAdminCheck()
L 12/28/2007 - 11:50:20: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:50:20: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:50:20: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::OnClientPostAdminCheck()
L 12/28/2007 - 11:51:22: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:51:22: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:51:22: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::OnClientPostAdminCheck()
L 12/28/2007 - 11:51:28: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:51:28: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:51:28: [SM] [0] Line 368, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::EventPlayerDeath()
L 12/28/2007 - 11:51:33: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:51:33: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:51:33: [SM] [0] Line 368, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::EventPlayerDeath()
L 12/28/2007 - 11:52:14: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:52:14: [SM] Displaying call stack trace for plugin "switchmenu.smx":
and it keeps on going with Line 368 error ...
Hello
Is it possible to add the feature to switch players with a clantag to the same team?
And also switching players using a (say) command where you only need a part of his name or by using userid# (some people have really weird/long names).
My server has 40 slots, takes me a long time to switch a few players and actualy finding them in the menu.
Thanks!
/edit, just found this error log
L 12/28/2007 - 11:47:21: SourceMod error session started
L 12/28/2007 - 11:47:21: Info (map "emp_mvalley") (file "errors_20071228.log")
L 12/28/2007 - 11:47:21: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:47:21: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:47:21: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::OnClientPostAdminCheck()
L 12/28/2007 - 11:49:54: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:49:54: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:49:54: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::OnClientPostAdminCheck()
L 12/28/2007 - 11:50:20: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:50:20: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:50:20: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::OnClientPostAdminCheck()
L 12/28/2007 - 11:51:22: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:51:22: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:51:22: [SM] [0] Line 41, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::OnClientPostAdminCheck()
L 12/28/2007 - 11:51:28: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:51:28: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:51:28: [SM] [0] Line 368, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::EventPlayerDeath()
L 12/28/2007 - 11:51:33: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:51:33: [SM] Displaying call stack trace for plugin "switchmenu.smx":
L 12/28/2007 - 11:51:33: [SM] [0] Line 368, /home/groups/alliedmodders/forums/files/2/7/9/5/2/21691.attach::EventPlayerDeath()
L 12/28/2007 - 11:52:14: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/28/2007 - 11:52:14: [SM] Displaying call stack trace for plugin "switchmenu.smx":and it keeps on going with Line 368 error ...
whitch mod run on this server ?
the plugin was made for max 32 slots but if i kow the max slot cont of the mod i can make it abel to work with more then 32
whitch mod run on this server ?
the plugin was made for max 32 slots but if i kow the max slot cont of the mod i can make it abel to work with more then 32
sorry for not including it in my last post.
The mod on my server is Empires 2.0.
The max players is 48 but my server can handle 42 at max.
Thanks!
So i dont have to worry about the error logs ?
BrutalGoerge
01-03-2008, 20:24
hey thanks for fixing that spectator problem in tf2
LocutusH
01-04-2008, 05:12
The switch team function kills everyone, and then swaps all but one player.
Is this the way it should work in CSS?
I think that it should only swap on roundend, and then everyone.
The switch team function kills everyone, and then swaps all but one player.
Is this the way it should work in CSS?
of course how soon, on round end is stupid if you want to switch a complete team.
but if you say 1 stay, can you see this one in the menu for single player switch ?
LocutusH
01-04-2008, 05:39
Why it is stupid to switch on round end, not killing everyone just for this?
If you look at mani admin plugin, it did that the same way. If this was voted, or executed by admin, the teamchange happened without killing or respawning anyone, on round end, where no one was confused about wich team he belongs to.
About that 1 player, i dont know yet. I havent looked in that menu. But its every time someone else.
let me note that i hate mani mod :D
but i will look i there is a way in the sourcemod sdk
LocutusH
01-04-2008, 06:32
Ok, its your choice :) I dont use it anymore also.
But its a fact, that in CSS this is the best method to swap teams.
saulstari
01-05-2008, 13:23
why can't it be simple:
/ct nick
/t nick
/swap #all
/spec nick
if you have readed the first page you have seen this:
TODO:
+add the ability to use the player switch function's in the console without the menu
and this is not a plugin for CS:S only and only in cs:s was a T and a Ct team
note: Read the thread before you post
LocutusH
01-11-2008, 12:59
Thx for the scramble team thing :) Will test ist tonight.
I hope it switches people on roundend, and not killing+respawning them :)
Caught off Guard
01-12-2008, 04:08
Hi,
this is my first post so forgive me if this is a noob question. This plugin is for any game but has anyone tried it with insurgency and if so what if any are the issues with this?
thanks
*edit: I've uploaded this plugin and it appears in the admin menu however non of the options work. so if I choose switch team player it comes up with a message that I have switched a player and shows that the player has been moved on the team scores but keep the player in the game and doesnt actually switch them. Also it does something weird because although I can select a different weapons (knife/nade/sidearm/rifle) I dont get the screen saying which item is selected (I assume because part of the game thinks I am not in the game!
is there any chance this plugin could be made to work with Insurgency as its fantastic and we could really use this
thanks
Hi,
this is my first post so forgive me if this is a noob question. This plugin is for any game but has anyone tried it with insurgency and if so what if any are the issues with this?
thanks
*edit: I've uploaded this plugin and it appears in the admin menu however non of the options work. so if I choose switch team player it comes up with a message that I have switched a player and shows that the player has been moved on the team scores but keep the player in the game and doesnt actually switch them. Also it does something weird because although I can select a different weapons (knife/nade/sidearm/rifle) I dont get the screen saying which item is selected (I assume because part of the game thinks I am not in the game!
is there any chance this plugin could be made to work with Insurgency as its fantastic and we could really use this
thanks
yes i can make it work
i need the internal team numbers then i can create a mod detection and make it compatible.
To get the team numbers i need a Insurgency Server to Upload a Team Number Retriver Plugin and then i can read out the numbers
LocutusH
01-12-2008, 12:00
The team scramble doesnt seem to do anything on our server... i click on the menu option, and nothing happens.
Caught off Guard
01-12-2008, 12:07
yes i can make it work
i need the internal team numbers then i can create a mod detection and make it compatible.
To get the team numbers i need a Insurgency Server to Upload a Team Number Retriver Plugin and then i can read out the numbers
hello, this is excellent news. Do i just need to install this mod, run it and get the team numbers or would you need access to your server via ftp to sort this out? (sorry if this is a noobish question :mrgreen:)
thanks
The team scramble doesnt seem to do anything on our server... i click on the menu option, and nothing happens.
on which mod ?
The team scramble doesnt seem to do anything on our server... i click on the menu option, and nothing happens.
I have coded a TeamId and mod name retriver
it's on the first page under the plugin download
the console commands are sm_getmod and sm_getteamId
i need all team id's and the modname you get with sm_getmod
the output is in the chat
LocutusH
01-13-2008, 06:41
on which mod ?
Its Counter Strike Source, as you can see the GameTracker image in my signature.
Caught off Guard
01-13-2008, 08:52
To get the team numbers i need a Insurgency Server to Upload a Team Number Retriver Plugin and then i can read out the numbers
happy for our server to be used.....
where can i get a team number retriever plugin? ive searched on here and using google but couldnt find anything. if someone can point me in the right direction i'll get the information you need..
thanks
happy for our server to be used.....
where can i get a team number retriever plugin? ive searched on here and using google but couldnt find anything. if someone can point me in the right direction i'll get the information you need..
thanks
:D look at the first page of this threade i write it yesterday
Caught off Guard
01-13-2008, 10:52
:D look at the first page of this threade i write it yesterday
*hangs head in shame - sorry
ive uploaded this to my server now. On map change it should be active. What do i need to do to get the information you need?
thanks
I have coded a TeamId and mod name retriver
it's on the first page under the plugin download
the console commands are sm_getmod and sm_getteamId
i need all team id's and the modname you get with sm_getmod
the output is in the chat
Hello everyone! It would be great to add function as in mani admin plugin
// Allow team swap option as part of Extend map on end
// of map vote (CSS Only)
mani_vote_end_of_map_swap_team 0
...or it is already exist in some plugin ?
Hello everyone! It would be great to add function as in mani admin plugin
// Allow team swap option as part of Extend map on end
// of map vote (CSS Only)
mani_vote_end_of_map_swap_team 0
...or it is already exist in some plugin ?
what does this command ?
Tekniqal
01-13-2008, 18:05
Hello everyone! It would be great to add function as in mani admin plugin
// Allow team swap option as part of Extend map on end
// of map vote (CSS Only)
mani_vote_end_of_map_swap_team 0
...or it is already exist in some plugin ?
Has already been requested int he right place.
http://bugs.alliedmods.net/index.php?do=details&task_id=970&string=swap&project=5&search_name=&only_watched=1&type[]=&sev[]=&pri[]=&due[]=&reported[]=&cat[]=&status[]=open&percent[]=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto= (http://bugs.alliedmods.net/index.php?do=details&task_id=970&string=swap&project=5&search_name=&only_watched=1&type%5B%5D=&sev%5B%5D=&pri%5B%5D=&due%5B%5D=&reported%5B%5D=&cat%5B%5D=&status%5B%5D=open&percent%5B%5D=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=)
Will be included in my "Admin Player Team Switch and Scramble Menu" plugin or i will make a modified version of the mapchoser
Just an idea, but it would be cool if scramble teams would take the scores into account so the teams are even skillwise.
Caught off Guard
01-14-2008, 14:52
hi,
I inputted the commands you gave me and this was the outcome:
] sm_getmod
*** Modname: insurgency
] sm_getteamId
*** Team ID: 3
I typed in the command when the server was empty and when the was server full and the above is all i got. is this enough?
thanks
Caught off Guard
01-14-2008, 16:28
no i need all team id's
hi - from your previous message where you said team id's i was expecting more stuff but the info above is all i got. i've checked the error logs in sourcemod logs but nothing in there suggests the team retriever plugin isnt working properly....
let me know what do to next....
appreciate your help
you should get on every team a other teamid like ct = team 2 or t = 3 or spectator = 1
P.S.
If Somebody want to contact me directly or get Plugin Update news over steam join this Group:http://steamcommunity.com/groups/Player-Switch-Plugin
Caught off Guard
01-14-2008, 17:11
you should get on every team a other teamid like ct = team 2 or t = 3 or spectator = 1
P.S.
If Somebody want to contact me directly or get Plugin Update news over steam join this Group:http://steamcommunity.com/groups/Player-Switch-Plugin
right sorted. sorry thought if I just joined it would give me all the info :
here it is by team:
] sm_getmod
*** Modname: insurgency
Marines:
] sm_getteamId
*** Team ID: 1
Insurgents:
] sm_getteamId
*** Team ID: 2
Spectator:
] sm_getteamId
*** Team ID: 3
thanks
this is the same like the actual version it should run
Ok i see the different to the actuall version. I will upload a new version in 5 min
Caught off Guard
01-14-2008, 17:54
update released!
thanks for updating. I removed the previous version, uploaded the new version, restarted the server and tried it out. unfortunately it didnt work. It was an empty server at the time. here is a screen shot of exactly what was in game. I (grunt) had spawned on the marines side and had switched myself to spectate. as you can see im still in game but the scoreboard thinks im in spec mode. any ideas what the problem is?
screenshot here:
http://img183.**************/img183/3750/insteamswtcherpm1.jpg (http://**************)
a bug in the mod ? :D , i havn't tested this release because i have no time today bud i should work, if i have time tomorrow i will look for a alternative way to execute the switch internal in the plugin.
Are the other switches , from one to the opposite team now ok ?
Caught off Guard
01-14-2008, 18:40
a bug in the mod ? :D , i havn't tested this release because i have no time today bud i should work, if i have time tomorrow i will look for a alternative way to execute the switch internal in the plugin.
thanks mate
Are the other switches , from one to the opposite team now ok ?
unfortunately not. Ive tried to switch teams from US to INS and I get the same. I stay in game but dont switch teams but do switch on the scoreboard...
ive not tried to the switch on death.
thanks
HammifeR
01-15-2008, 05:56
A new menu option (and/or console cmd) to switch all players to spectators. We need this in tf2 and css when we run mixed team scrims.
Thanks.
@Caught off Guard (http://forums.alliedmods.net/member.php?u=34003)
please contact me over steam i have a idea how to fix it but i need a direct tester for it
A new menu option (and/or console cmd) to switch all players to spectators. We need this in tf2 and css when we run mixed team scrims.
Thanks.
Will be added later (today i think)
for it i have to create a new main menu i think this plugin adds now to many submenus to the Player menu :D
LocutusH
01-15-2008, 10:14
r5053: Do i see it right, that you are simply calling the mp_scrambleteams 1 server command, to scramble teams?
If thats true, its evident, that it will not work on CSS, since only TF2 has this server command.
r5053: Do i see it right, that you are simply calling the mp_scrambleteams 1 server command, to scramble teams?
If thats true, its evident, that it will not work on CSS, since only TF2 has this server command.
you see it right i know this, but from beginning i plan to add support for this for other mod's by doing it with the plugin and not with the server command, if i have time to code the function:D
P.S. Is the Player Switch Now Ok on CS:S ? (I fixed this bug @scool, and there it's not a good idea to start CS:S)
P.S.: All who want to get update news over steam or want to contact me join this steam group: http://steamcommunity.com/gid/103582791429705545
LocutusH
01-15-2008, 10:29
you see it right i know this, but from beginning i plan to add support for this for other mod's by doing it with the plugin and not with the server command, if i have time to code the function:D
Ok, but maybe if you are checking wich mod is running, you could prevent the team scrambling option to appear under css, until this is done :)
Another question:
What do you do, to prevent the cs_switchteam bug to occur? (see SM bug reports) Is this per-player variable used, to check if a player was swapped or not, and where are you doublechecking this, to prevent the code from aborting, or ignoring a player?
PS ive updated the plugin on our server, but its not tested yet, what the teamswitch does.
i have now found a special swap command for cs:s now i check the mod and if it's cs:S it uses the special swapp command instead of the normal swapp command
LocutusH
01-15-2008, 10:39
i have now found a special swap command for cs:s now i check the mod and if it's cs:S it uses the special swapp command instead of the normal swapp command
Umm, but you are doing exactly the opposite of this :)
if (modcstrike == 1)
{
CS_SwitchTeam(i, GetOtherTeam(GetClientTeam(i)));
}
If the mod is cstrike, you use cs_switchteam, wich is bugged. Or iam wrong?
Is the First post updated with your latest version? I run a FortressForever server and want to try your latest version.
Umm, but you are doing exactly the opposite of this :)
if (modcstrike == 1)
{
CS_SwitchTeam(i, GetOtherTeam(GetClientTeam(i)));
}If the mod is cstrike, you use cs_switchteam, wich is bugged. Or iam wrong?
Have you ever tested the new updated pluginversion with this this switch?
if (tested_the_new_version == true)
{
I will be happy if you post the Specific bug.
}
else
{
if (if_you_only_watched_the_source_code_and_thin k_maybe_it_doesn't_run = true)
{
there are manyways:
1.Join the Steamcommunity Group and tallk to me, if i had time i can explain it to you.
2.If you mean you know it better without running the new version,go away and code your own plugin.
But dont post a comment in this threade!!! without testing it.
}
}
If you have coding questions ask me directly over steam!!!
if the command cs_switchteam is bugged write a bug report to bailopan and not to me.
ChangeClientTeam
Changes a client's team through the mod's generic team changing function. On CS:S, this will kill the player.
CS_SwitchTeam
Switches the player's team. (needs to include cstrike)
LocutusH
01-16-2008, 02:18
It wasnt meant as an offence to you.
I just wanted to understand how did you get around the cs_switchteam bug (wich is already bug reported on the SM bugtracker site).
:D ok sry for the bad karma :D
but if you have coding qestions Message me with ICQ or Steam then i can explain you everything
Please test it on CS:S i think theres no error in the bug report of the other plugin looking like a conflict with playerid != userid
and I repead it again join the comunity group :D
BoredMind
01-16-2008, 18:14
I receive the following error when I try to run this on an updated TF2 server:
[SM] Unable to load plugin "switchmenu.smx": Required extension "cstrike" file("games/game.cstrike.ext") not running
Any suggestions?
Thank you
I receive the following error when I try to run this on an updated TF2 server:
[SM] Unable to load plugin "switchmenu.smx": Required extension "cstrike" file("games/game.cstrike.ext") not runningAny suggestions?
Thank you
this is a sm extension, have you uploded the plugin?
BoredMind
01-16-2008, 19:19
I have uploaded the Player Switch plugin and I'm using SourceMod on the server, running one of the latest builds.
I mean have you uplodad the complete source mod?
:D update will be released in 7 h that fix the problem with non CS:S mods
Caught off Guard
01-17-2008, 17:02
hi
have you had any luck in sorting this plugin for insurgency?
thanks
CoG
HammifeR
01-18-2008, 14:48
I'm running sm build 1854, tested the latest version of this plugin and..
For TF2, switchmenu.smx 0.2.3 works fine.
For CSS, both the original and the css edition of 0.2.3 didnt work for me the way it worked in 0.2.0. No switches are ever performed directly, on death or after round end. I've reloaded 0.2.0 on my servers for now. Didnt get any chance to test 0.2.2.
Also, regarding the earlier "switch all players to spec" feature request ive made, i didnt see any new option for it. So if it's already added, something is wrong. Otherwise, i'll just wait for it.
Thanks.
HammifeR
01-18-2008, 15:06
Just tested 0.2.4 for css. Both original and css edition didnt work either.
Just tested 0.2.4 for css. Both original and css edition didnt work either.
does no player switch work?
HammifeR
01-19-2008, 02:34
I dun really understand wat u mean. Basically, all player switch are not working. The plugin will still print to console saying that player is switched but nothing happens. The player will still in the original team he's on even after death.
please test it with v.0.2.5
HammifeR
01-19-2008, 06:13
Will do once i can get players off my servers
HammifeR
01-19-2008, 06:38
cssedition 0.2.5 test results on css server are as follows.
switch player and switch player after death both switches player only after death.
switch teams works after player death but the player is shown as already switched to the other team before death on the scoreboard.
switch player to spec does not work.
Thanks.
will be fixed after my server goes online again (offline sice 6 days and my hoster is to stupid to fix the problem)
Caught off Guard
01-25-2008, 11:28
Hi
just tested the latest version with insurgency and the same is happening for me that was happening for HammifeR.
I dun really understand wat u mean. Basically, all player switch are not working. The plugin will still print to console saying that player is switched but nothing happens. The player will still in the original team he's on even after death.
if you could resolve this, it would be very much appreciated
thanks
DontWannaName
01-30-2008, 00:20
I used random switch in tf2 today and it doesnt work, at all. Theres a cvar though.
mplostcause
02-11-2008, 11:33
I have been using your script on my DoD:S server. So far, all the features I have tried have worked perfectly. The only thing I haven't tested is switch on death.
I was originally hoping to use your plugin to change support on an eventscript written for Mani Mod over to Sourcemod, since Mani has a built in team switcher and Sourcemod does not. I wait patiently for the release of your script that adds console command support.
oliverk23
02-25-2008, 16:37
can you also bin the switch options in the admin menü to an free admin flag, so i can choose who are allowed to swap people ?
greats
yes np will be added tomorrow or this weekend
oliverk23
02-26-2008, 13:00
thx
oliverk23
03-01-2008, 20:14
added ?
doe's all players have menu access to the admin menu ?
r5053:
Could you group all Switch menu options under one single point in the main admin menu?
For example:
sm_admin > Player Options > Switch Player >
Switch on Death
Switch to spec
Switch team
...
At the moment you have the following:
sm_admin > Player Options >
Switch Death
Switch Spectator
Switch Team
...
will be done @the recode next week
hi r5053
is it possible to make a team scrambler ?
lets say a new map started and players are starting to choose their side.
But many clanners are stacked on one side against noob pubbers.
So when this happens, an admin can perform a sm_swscramble or something similar and all CT + T players will get randomized (lol) so there are clanners on both sides.
The scramble is not based on skills (nobody has stats) and also not based on clantags or whatever (name recognizer). Just pure luck and random teams (like rolling a dice). Also make it PrintToAllChat and say that "name of admin" has scrambled the teams, so the players wont be like "WTF?" :p
This feature would be very nice and would own all the other teambalancers out there :)
thanks!
ok i have plan how to do this scramble randome, it will be done soon, (maybe next week, or this weekend, this week my new PC is primary :D after 6 years today commes my new hardware, yeha http://www.sysprofile.de/id59411 the cpu will be changed if i have money again :D)
I plan to write all players into one array, then i change the players position randomize in this array, maybe in a loop 2 times, and then i send player nr.1 in team 1 and player 2 in team 2, and player 3 again in team 1 .... but i need someone with a server , or a server to test it, with other mod's then TF2 (tf2 will be detectet and it uses the serversided integrated scrambe command) HF&GL
Raphael Hehl
Caught off Guard
03-19-2008, 03:50
ok i have plan how to do this scramble randome, it will be done soon, (maybe next week, or this weekend, this week my new PC is primary :D after 6 years today commes my new hardware, yeha http://www.sysprofile.de/id59411 the cpu will be changed if i have money again :D)
I plan to write all players into one array, then i change the players position randomize in this array, maybe in a loop 2 times, and then i send player nr.1 in team 1 and player 2 in team 2, and player 3 again in team 1 .... but i need someone with a server , or a server to test it, with other mod's then TF2 (tf2 will be detectet and it uses the serversided integrated scrambe command) HF&GL
Raphael Hehl
good luck with the system upgrade!
I would like to offer our Insurgency server to help test this plugin as id really like this plugin on our server.
good luck with the system upgrade!
I would like to offer our Insurgency server to help test this plugin as id really like this plugin on our server.
if he is interested he can test on my 3 other servers too haha :p
email me
[email protected] or http://steamcommunity.com/id/StevenT add me to friends or PM me
I plan to write all players into one array, then i change the players position randomize in this array, maybe in a loop 2 times, and then i send player nr.1 in team 1 and player 2 in team 2, and player 3 again in team 1 .... but i need someone with a server , or a server to test it, with other mod's then TF2 (tf2 will be detectet and it uses the serversided integrated scrambe command) HF&GL
Raphael Hehl
maybe switch team 1 (ct) and team2 (t) to spec first and then from there alphabeticaly a to 1, b to 2, c to 1 etc ...
all clanners wearing clan tags will be in spec all behind each other, so there is an equal of clanners on both side
the switching to spec and then putting them in teams again, must happen very fast ;) like in a few seconds ^^
codename-G-
03-31-2008, 10:41
this plug-in is automatic team switch?
DontWannaName
03-31-2008, 13:15
No its not. Just commands to switch.
codename-G-
04-02-2008, 04:54
THX! look for others :D
FunTF2Server
05-03-2008, 20:40
can you switch spectators to a team with this?
DontWannaName
05-04-2008, 03:41
I cant remember, I use the newer one but if this ones recode goes well I may switch. It all depends. What would be cool is that when someone is switched they dont get switched right back from auto balancer in TF2 :D
"TODO: +add the ability to use the player switch function's in the console without the menu"
Are you ever going to do this? I'd really like to continue using your version of this plugin, instead of this one (http://forums.alliedmods.net/showthread.php?t=67292).
Does this still work for CS:S? O,o
Frettchen5
03-01-2009, 09:21
r5053:
Could you group all Switch menu options under one single point in the main admin menu?
For example:
sm_admin > Player Options > Switch Player >
Switch on Death
Switch to spec
Switch team
...
At the moment you have the following:
sm_admin > Player Options >
Switch Death
Switch Spectator
Switch Team
...
Yes, Please!
Do this, now it`s a little bit confused.
Faust_mateo
03-07-2009, 14:33
Ty Devs , this works great for me!
bobbobagan
03-11-2009, 05:28
It would be nice, if after you selected a player from the menu it would hold the position. Just incase you select the wrong player, you have to try find them in the menu again and unselect them.
Also when changing a players team immediatly, they should also change skin!
2 Questions, maybe i'm slow.
1. What flag does this require....for admins to use it(i think i found it with admin_generic)
RegAdminCmd("sm_swmenu", Menu_swp, ADMFLAG_GENERIC, "Switches Player Menu");
RegAdminCmd("sm_swadmenu", Menu_swpad, ADMFLAG_GENERIC, "Switches Player After Death Menu");
RegAdminCmd("sm_swteams", swteams, ADMFLAG_GENERIC, "Switches The Team's");
RegAdminCmd("sm_swspec", Menu_swspec, ADMFLAG_GENERIC, "Switche Player to Spectator");
Now if i only want my players to be able to swap after death, how would i comment out the other stuff without breaking the entire plugin?
2. You are aware in ins if you swap player, he keeps the same model and gun, and can't spawn till he picks a new class, but isn't prompted to the screen. I think if you are going to swap the player in insurgency, you should make the client kill themself before the swap, i guess a way around it. Other then that, great plugin.
Faust_mateo
03-11-2009, 13:01
Hello, running DOD:S & SM 1.2, I can switch a individual player from team to team or to spectate but scramble doesn't work. Any Idea's?
there will be a update comming soon...
what I'd like to see is the ability to easily decide who has access to these menu options. I've added
"sm_swadmenu" "deny"
"sm_swteams" "deny"
"sm_swmenu" "deny"
"sm_swspec" "deny"
to the group that I don't want to have access to it but the "switch after death" and "scramble teams" still shows up for them in the admin menu for these people. I'm really new to this stuff and this is the way I've been able to remove most of the commands that come with specific flags that I don't want certain people to have access to.
Any help would be appreciated.
bobbobagan
03-23-2009, 20:48
Please make the new version follow "sm_show_activity" values.
Please make the new version follow "sm_show_activity" values.
what?
rodregis
06-29-2009, 06:59
Please post it if it run's on a mod who is not listed yet!!!
MOD:Smashball
Versions:MetaMod:Source v1.7.1V, SourceMod v1.3.0-dev
Team changes work. Haven't tested death event's though as SM isn't fully compatable.
Lots of smashball admins will enjoy using this plugin. I'll post some more findings when I look into it further.
As soon as I saw you catered for custom mods with the seperate smx's I pretty much knew my search was over. Thankyou.
What about admin flag?
ADMFLAG_GENERIC
orangeyoshi
08-28-2009, 09:08
Hello, just installed this plug in, works fine with the command line sm_swmenu etc... but when I use the menu build in to the sm menu, it just does nothing. Could there be a conflict somewhere?
Tiny Tod
10-17-2009, 08:20
where do they all go gah ah doesnt say or im just plain stupid haha anyone know?
i have put this switchmenu to my css server ----> plugin and it shows in my admin menu and it shows the comand but it dont switch the player i try to switch ??
Can you please help me
Greetz
Vernie
sniperbobod
08-07-2010, 06:10
First of all I would like to say that this plugin rocks!
I'm wondering if anyone can make it create a new menu in the Admin Menu like this plugin does: https://forums.alliedmods.net/showthread.php?p=587405#post587405
My Player Commands menu is already jumbled enough. It would be really awesome if this could have its own menu.
Thanks! :D
sniperbobod
08-09-2010, 20:01
First of all I would like to say that this plugin rocks!
I'm wondering if anyone can make it create a new menu in the Admin Menu like this plugin does: https://forums.alliedmods.net/showthread.php?p=587405#post587405
My Player Commands menu is already jumbled enough. It would be really awesome if this could have its own menu.
Thanks! :D
Is this too hard to do? :cry:
NightLinks
08-11-2010, 16:12
Does anyone know if this plugin still works?
sniperbobod
08-11-2010, 18:41
Yes it works
Impact123
12-16-2011, 18:28
I noticed today that SourceTv is not excluded from the switchlist.
This is not a big deal, but maybe you should add an check for that (http://docs.sourcemod.net/api/index.php?fastload=show&id=1004&).
Yours sincerely
Impact
RedSword
03-10-2012, 23:35
Team scrambling seems to only work for TF2 (looking at code and testing...).
Endercool
05-21-2013, 10:03
What is the unique item names for the features for Admin sorting?
sm_swap ?
Hi, im a bit noob with installing Sourcemod plugins, where should i put these files?
marshaul
11-29-2016, 02:12
Note that if anybody wishes to use this for Insurgency (2014 as opposed to the mod) you'll need to remove the section which checks wether the mod folder is insurgency and changes the team numbering, as Insurgency no longer uses different team numbering.
Hi,
I've modified my admin menu so team switch commands are in a menu just for them, but I don't know how to remove the commands from the "Player Commands".
Can I have a version of the plugin without it, and can you tell me which part you've removed? :)
Thanks
UrinTrolden
08-09-2021, 13:56
Nice, first addon for team swapping that worked for me. (CS:S)
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.