Raised This Month: $188 Target: $400
 47% 

[L4D & L4D2] SM Respawn command


Post New Thread Reply   
 
Thread Tools Display Modes
Author
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Plugin ID:
970
Plugin Version:
1.9.3
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    418 
    Plugin Description:
    Respawns dead Survivors and teleports them where you aim
    Old 07-02-2009 , 13:42   [L4D & L4D2] SM Respawn command
    Reply With Quote #1

    First of all, the actual respawn code is all doku's. I tried a different approach, removing the CHEAT flag from the respawn command at first, but that seems impossible .. so i just made a wraparound for his solution.

    This doesnt revive automatically but gives admins a [sm_respawn <name1> <name2> ...] command to revive any number of Survivors with. For example, if some griefer got in, jumped off a cliff and disconnected. After Resurrection they are teleported to the admin cursor, just like for z_spawn. [Using FuncommandsX Teleport Code]



    If you want this in your sm_admin menu, add something like this to your addons/sourcemod/configs/adminmenu_custom.cfg

    Code:
    "Commands"
    {
        "PlayerCommands"
        {
            "Respawn Survivor"
            {
                "cmd"        "sm_respawn #1"
                "admin"        "sm_kick"
                "execute"    "player"
                "1"
                {
                    "type"        "player"
                    "method"    "name"
                    "title"        "Player:"
                }
            }
        }
    }
    Changelog:
    1.0 - Initial Release
    1.1 - Integrated Teleport code from FuncommandsX Plugin
    1.2 - swapped from silent sv_cheats 1 and respawn to SDK method
    1.3 - removed the need for a gamedata file
    1.4 - fixed Linux Offset, thanks to BAILOPAN and BertieB
    1.5 - now gives respawned Survivors a Medkit and a SMG
    1.6 - self-respawning doesnt teleport anymore, both gamedata file or autodetection now valid.
    1.7 - removed autodetection code since the update broke it
    1.8 - made KAC compatible, added ivailosps Infected Respawn code
    x.x - fixed gamedata file to comply with The Passing Update, redownload it
    1.9 - overhauled Plugin to use Signature instead of Offset, wont break even on major patches
    1.9.2 - Unneeded Signature errors for L4D1 wont log anymore
    1.9.3 - you now (Survivor-)respawn yourself at where you look instead of in the Saferoom


    Installation:

    Put the .smx into your sourcemod/plugins folder
    Put the .txt into your sourcemod/gamedata folder
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_sm_respawn.sp - 15364 views - 5.6 KB)
    File Type: txt l4drespawn.txt (1.7 KB, 5181 views)

    Last edited by AtomicStryker; 07-06-2013 at 07:56.
    AtomicStryker is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 07-02-2009 , 14:03   Re: [L4D] SM Respawn command plugin
    Reply With Quote #2

    Cool! Where do they reappear? At spawn location?
    Thraka is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 07-02-2009 , 14:38   Re: [L4D] SM Respawn command plugin
    Reply With Quote #3

    Thats typically how respawn works, yes.
    Dragonshadow is offline
    GM-Scorp
    Senior Member
    Join Date: Jun 2009
    Location: netherlands
    Old 07-02-2009 , 16:51   Re: [L4D] SM Respawn command plugin
    Reply With Quote #4

    For some reason this disables my advertisement plugin the automatic messages on my server arnt working anymore now

    hows that posable ???
    GM-Scorp is offline
    Send a message via MSN to GM-Scorp
    webtax
    Junior Member
    Join Date: Jul 2009
    Old 07-02-2009 , 16:54   Re: [L4D] SM Respawn command plugin
    Reply With Quote #5

    checking... working..
    webtax is offline
    GM-Scorp
    Senior Member
    Join Date: Jun 2009
    Location: netherlands
    Old 07-02-2009 , 16:59   Re: [L4D] SM Respawn command plugin
    Reply With Quote #6

    yeah after restarting the servers 2 times

    the advertisement started to work again

    i dunno wat caussed the problem then

    but it started after installing this plugin

    maby its just coincidence

    Thx AnywayZzz for the plugin i needed it


    EDIT: It works Great i just tested it i let a friend jump off the roof and i respawned him THX man Great Work

    Last edited by GM-Scorp; 07-02-2009 at 17:40.
    GM-Scorp is offline
    Send a message via MSN to GM-Scorp
    Poheart
    Member
    Join Date: Mar 2009
    Old 07-03-2009 , 00:52   Re: [L4D] SM Respawn command plugin
    Reply With Quote #7

    I Think if you could include Admin menu on plugin , that must be great!
    Good work,Thanks for your nice plugin
    __________________
    Administrator of HoursPlayed Inc.(www.HoursPlayed.net) Gaming Community.
    Poheart is offline
    fgriasa
    Junior Member
    Join Date: Jun 2009
    Old 07-03-2009 , 02:11   Re: [L4D] SM Respawn command plugin
    Reply With Quote #8

    Some player's name is very complex
    fgriasa is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 07-03-2009 , 03:05   Re: [L4D] SM Respawn command plugin
    Reply With Quote #9

    You don't need to type their full names, just a fragment big enough that Sourcemod can find the right one ^^

    Also, you could use the menu
    AtomicStryker is offline
    Number Six
    Senior Member
    Join Date: Dec 2008
    Old 07-03-2009 , 03:13   Re: [L4D] SM Respawn command plugin
    Reply With Quote #10

    Conflicts several with http://forums.alliedmods.net/showthread.php?t=95365
    [L4D] Survivor Upgrades

    If remove survivors upgrades or your plugin , all return to normal
    __________________


    Number Six 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:49.


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