Raised This Month: $182 Target: $400
 45% 

[TF2] Autorespawn for Admins


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Chefe
Senior Member
Join Date: Dec 2009
Location: Germany
Plugin ID:
1311
Plugin Version:
1.5.8
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    43 
    Plugin Description:
    Respawn(&Teleport?) Admins/Players in a varaible amount of time
    Old 12-04-2009 , 17:10   [TF2] Autorespawn for Admins
    Reply With Quote #1

    Autorespawn for Admins

    This plugin allow admins with the "t" flag or all players to respawn in variable amount of time. The plugin is in default disabled at roundend and in the sudden death round. You can choose between respawn only admins or all automatically. Since 1.5 it is possible to teleport the players back to there old position.

    The Plugin autogenerate an config in cfg/sourcemod.


    CVARs (defaults bold)


    sm_instant_enabled (0 | 1) (enable or disable the plugin)

    sm_instant_time (>= 0.1) (set the respawn time for admins or players)

    sm_instant_admins_only (0 | 1) (1 = respawn only admins automatically, 0 = respawn all automatically)

    sm_instant_sudeath (0 | 1) (1 = don't respawn players in Sudden Death, 0 = respawn in Sudden Death)

    sm_instant_re (0 | 1) (1 = don't respawn players on RoundEnd, 0 = respawn on Roundend)

    sm_instant_teleport (0 | 1) (1 = teleport players back to the old position, 0 = disable teleport to old position)

    sm_instant_flag (t) (Set the flag need by admins to use the instant respawn. Use flags like t or o and so on...)

    sm_instant_version (shows the current plugin version)


    Changelog

    1.0

    - initial release

    1.1

    - fixed the Spy-problem (thanks to psychonic)

    1.2


    - fixed that the plugin is not disabled in the sudden death round
    - add that instant respawn can only use if the admin has the "t" flag

    1.3

    - add the FCVAR_NOTIFY flag to all convar`s
    - add CONVAR "sm_instant_version" that show the current plugin version

    1.4

    - add convar "sm_instant_admins_only" (for description look by ConVars)

    1.4.1

    - remove the NOTIFY flag from sm_instant_version

    1.4.2

    - add the NOTIFY flag to sm_instant_version and remove it from all other cvars (yes my mistake )

    1.4.3

    - do little change on the version convar (for tracking)

    1.5

    - add ConVar sm_instant_sudeath
    - add ConVar sm_instant_re
    - add ConVar sm_instant_teleport
    - add teleport function

    1.5.1

    - add restoring of old angles on teleport after respawn
    - fixed some descriptions

    1.5.2

    - fixed custom flag not working

    1.5.3

    - added flag set by convar (default flag is t)

    1.5.4

    - fixed sm_instant_version not shows the current plugin version
    - fixed that ClientRespawn() is called when player is not ingame
    - fixed that sm_instant_sudeath not worked correctly

    1.5.5

    - fixed sm_instant_re working wrong like the other carvar

    1.5.6

    - added respawntime tag to be conform with valves server rules

    1.5.7

    - added respawntime tag to be conform with valves server rules (again)

    1.5.8

    - fixed typo in tag(s)


    Have FUN!
    Attached Files
    File Type: sp Get Plugin or Get Source (autorespawn_for_admins.sp - 2373 views - 4.6 KB)

    Last edited by Chefe; 06-03-2013 at 10:58. Reason: New Plugin Version
    Chefe is offline
    noodleboy347
    SourceMod Donor
    Join Date: Mar 2009
    Old 12-07-2009 , 23:22   Re: [TF2] Autorespawn for Admins
    Reply With Quote #2

    This works great, thanks!
    noodleboy347 is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 12-08-2009 , 15:32   Re: [TF2] Autorespawn for Admins
    Reply With Quote #3

    Quote:
    Originally Posted by Chefe View Post
    When you are a Spy with the Deadringer, the Autorespawner is Disabled for you, because you will respawn when it was a fake death, too.
    You can check for feign death by looking at the death_flags property on the player_death event.

    PHP Code:
    new death_flags GetEventInt(event"death_flags");
    if (!(
    death_flags 32))
    {
        
    // real kill

    psychonic is offline
    Chefe
    Senior Member
    Join Date: Dec 2009
    Location: Germany
    Old 12-08-2009 , 15:48   Re: [TF2] Autorespawn for Admins
    Reply With Quote #4

    Quote:
    Originally Posted by psychonic View Post
    You can check for feign death by looking at the death_flags property on the player_death event.

    PHP Code:
    new death_flags GetEventInt(event"death_flags");
    if (!(
    death_flags 32))
    {
        
    // real kill

    Thank you. I will fix it.

    EDIT: Fixed. Have fun.

    Last edited by Chefe; 12-08-2009 at 15:56.
    Chefe is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 12-16-2009 , 18:38   Re: [TF2] Autorespawn for Admins
    Reply With Quote #5

    When TF2 map enters sudden death, it never ends as players keep respawning!!!

    Can this be turned off during sudden death.
    __________________
    ph is offline
    noodleboy347
    SourceMod Donor
    Join Date: Mar 2009
    Old 12-16-2009 , 21:02   Re: [TF2] Autorespawn for Admins
    Reply With Quote #6

    Can you make this admin-only? Lul, kidding.

    Can you make a flag cvar?
    noodleboy347 is offline
    Chefe
    Senior Member
    Join Date: Dec 2009
    Location: Germany
    Old 12-17-2009 , 09:54   Re: [TF2] Autorespawn for Admins
    Reply With Quote #7

    Quote:
    Originally Posted by KHALIK View Post
    When TF2 map enters sudden death, it never ends as players keep respawning!!!

    Can this be turned off during sudden death.
    I will fix it.

    @ noodleboy347: It is already admin only . But i can make a flag, too.

    FINALE EDIT: I fixed the sudden death round problem and now admins require the "t" flag to use the autorespawn.

    Last edited by Chefe; 12-17-2009 at 11:04.
    Chefe is offline
    Chefe
    Senior Member
    Join Date: Dec 2009
    Location: Germany
    Old 12-18-2009 , 10:11   Re: [TF2] Autorespawn for Admins
    Reply With Quote #8

    UPDATE

    Add ConVar "version" and fix that i have forgot the ConVar-flags

    Last edited by Chefe; 12-20-2009 at 17:20.
    Chefe is offline
    Chefe
    Senior Member
    Join Date: Dec 2009
    Location: Germany
    Old 12-20-2009 , 17:20   Re: [TF2] Autorespawn for Admins
    Reply With Quote #9

    UPDATE

    Add a carvar that allow you to choose between spawn only admins or all automatically.
    Chefe is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 12-24-2009 , 22:36   Re: [TF2] Autorespawn for Admins
    Reply With Quote #10

    Quote:
    Originally Posted by Chefe View Post
    I will fix it.

    @ noodleboy347: It is already admin only . But i can make a flag, too.

    FINALE EDIT: I fixed the sudden death round problem and now admins require the "t" flag to use the autorespawn.

    Say I have 5 admins with "t" flags, under sudden death playing?

    Will I still get this problem?
    __________________
    ph 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 20:50.


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