Raised This Month: $ Target: $400
 0% 

Swapper


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xaider
Senior Member
Join Date: Jan 2009
Location: Russia, Ryazan
Plugin ID:
837
Plugin Version:
0.02
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Useful tool for swapping players
    Old 04-20-2009 , 11:32   Swapper
    Reply With Quote #1

    Just a useful tool for swapping players for any mod.
    Tested on CS:S, HL2MP, DOD:S.

    Commands:
    • sm_swap <player> - swap team of a player(s).
    • sm_swapround <player> - swap team of player(s) at end of round/on player's death.
    • sm_exch <player1> <player2> - swaps two players in opposite teams.
    • sm_exchround <player1> <player2> - swaps two players in opposite teams at end of round/on player's death.
    In all mods except CS:Source switching team cause player's death. In CS:S team of player swaps normally (model changes, c4 drops, defuser removes) instead of SM Super Commands or other.

    When using sm_*round commands team switching performs on "round_end" and "player_death" events (in CS:S only "round_end").

    Plugin provides useful menu sections in "player commands" of admin menu.

    Updates:
    • 0.02 - Lot of changes. Very hard rework.
    Attached Files
    File Type: zip swapper.zip (16.1 KB, 2010 views)
    __________________
    Life don't forgive weaknesses..

    Last edited by xaider; 09-26-2009 at 14:09.
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    exvel
    SourceMod Donor
    Join Date: Jun 2006
    Location: Russia
    Old 04-21-2009 , 14:07   Re: [CS:S] Swapper
    Reply With Quote #2

    Looks good. What about different mod support?
    __________________
    For admins: My plugins

    For developers: Colors library
    exvel is offline
    Send a message via ICQ to exvel
    xaider
    Senior Member
    Join Date: Jan 2009
    Location: Russia, Ryazan
    Old 04-21-2009 , 15:16   Re: [CS:S] Swapper
    Reply With Quote #3

    Afaik real time player's team switching available only in CS:S. For other mods switching cause player's death. So I can try to modify it for other mod if you'll give full info about teams, models and items, that should be removed when switching.
    __________________
    Life don't forgive weaknesses..
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    exvel
    SourceMod Donor
    Join Date: Jun 2006
    Location: Russia
    Old 04-21-2009 , 15:57   Re: [CS:S] Swapper
    Reply With Quote #4

    Если не ошибаюсь, для TF и DoD номера команд те же, что и для CS. Да и вообще, практически во всех модах 0 и 1 - это спектаторы (или только что подключившиеся), а остальные номера, собсно, и есть команды.
    Насчет предметов, тут тоже все просто, ничего убирать не придется, даже не потому, что есть какие-то предметы, которые нужно убрать, а просто из-за того, что полюбому придется убить перемещаемого игрока.
    __________________
    For admins: My plugins

    For developers: Colors library
    exvel is offline
    Send a message via ICQ to exvel
    xaider
    Senior Member
    Join Date: Jan 2009
    Location: Russia, Ryazan
    Old 04-22-2009 , 05:23   Re: [CS:S] Swapper
    Reply With Quote #5

    Ну типа тут интернациональный форум, так что пиши по англицки, а насчет плагина: будет время - переделаю.
    __________________
    Life don't forgive weaknesses..
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    xaider
    Senior Member
    Join Date: Jan 2009
    Location: Russia, Ryazan
    Old 04-22-2009 , 08:31   Re: Swapper
    Reply With Quote #6

    Reworked. Now it's work on all mods.
    __________________
    Life don't forgive weaknesses..
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    exvel
    SourceMod Donor
    Join Date: Jun 2006
    Location: Russia
    Old 04-22-2009 , 08:47   Re: Swapper
    Reply With Quote #7

    Good job. Finally we have a really good plugin for changing players' team.
    __________________
    For admins: My plugins

    For developers: Colors library
    exvel is offline
    Send a message via ICQ to exvel
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 04-24-2009 , 05:08   Re: Swapper
    Reply With Quote #8

    Menu included?
    __________________
    shustas is offline
    xaider
    Senior Member
    Join Date: Jan 2009
    Location: Russia, Ryazan
    Old 04-24-2009 , 07:00   Re: Swapper
    Reply With Quote #9

    YES, in "Player commands" of sm_admin menu 4 new sections.
    __________________
    Life don't forgive weaknesses..
    xaider is offline
    Send a message via ICQ to xaider Send a message via Skype™ to xaider
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 04-24-2009 , 07:03   Re: Swapper
    Reply With Quote #10

    Very nice, now only the whole team swap would be even more cool

    But, there is 9 warnings for loose indentations
    __________________

    Last edited by shustas; 04-24-2009 at 07:08. Reason: warnings
    shustas is offline
    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 22:31.


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