Raised This Month: $319 Target: $400
 79%   Almost there!

[CS:GO] Autorespawn System (v1.3, 25-02-2018)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Plugin ID:
5983
Plugin Version:
1.3a
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Antorespawn system with configuration per map.
    Old 01-11-2018 , 17:57   [CS:GO] Autorespawn System (v1.3, 25-02-2018)
    Reply With Quote #1

    Description:
    An automated respawn system, that can suit your needs. It can be configured differently for every map. You can add X map which will use lifes (which is the default option), yet you can add map Y and configured it to use timer instead, or add map Z on which players will respawn infinite times. The spawnkiller detector is also configurable and can enabled or disabled for single maps.

    Instalation:
    You need [INC] Multi Colors to compile the plugin.
    • Compile locally and put ph_autorespawn.smx in ./addons/sourcemod/plugins/
    • Restart the map. A config will be automatically generated

    Main commands (Requires ADMFLAG_BAN):
    • sm_autorespawnmenu (or !autorespawnmenu) - Opens a menu, where you can add or remove a map. (Default: Respawn with 3 lives each round)
    Sub commands, when a map has auto-respawn (Requires ADMFLAG_RCON):
    • sm_respawntype (or !respawntype) - Use this to configure the type of auto-respawn. (0 - will use timer, 1 - will use lives insted and 2 - will respawn players infinite times).
    • sm_respawnlives (or !respawnlives) - Use this to configure the numbers of lifes per round. (If you use lives)
    • sm_respawntimer (or !respawntimer) - Use this to configure the timer in which players can respawn. (If you use timer)
    • sm_respawnsk (or !respawnsk) - Use this to configure the spawnkill detector. Either enable or disable it. [0 - Off, 1 - On]

    Example config:
    PHP Code:
    "respawnmaps"
    {
        
    "mg_escape_castle_v3_fix"
        
    {
            
    "type"        "1"
            "maxtime"        "60"
            "lives"        "3"
            "spawnkiller"        "1"
        
    }
        
    "mg_lego_course_3_csgo_v2"
        
    {
            
    "type"        "1"
            "maxtime"        "60"
            "lives"        "3"
            "spawnkiller"        "1"
        
    }
        
    "mg_blood_sector_v1"
        
    {
            
    "type"        "1"
            "maxtime"        "60"
            "lives"        "3"
            "spawnkiller"        "1"
        
    }
        
    "mg_saw_3_v1"
        
    {
            
    "type"        "1"
            "maxtime"        "60"
            "lives"        "3"
            "spawnkiller"        "1"
        
    }

    Some simple natives:
    PHP Code:
    /**
     * Very useful if you need to spawnkill a player
     * if he doesn't need to be respawned from other plugins action.
     *
     * @param value     Sets a spawnkill to a player while autorespawn is ON.
     * true - The player is spawnkilled and won't be respawned.
     * false - The opposite of true.
     */
    native void SpawnKilled(int clientbool value);

    /**
     * Very useful if you want a plugin to check,
     * if autorespawn is enabled.
     *
     * @param Returns if respawn is enabled.
     */
    native bool RespawnOn(); 
    Changelog:
    Code:
    1.0 - Initial release.
    1.1 - Changed how spawnkill check works, fixed a broken timer handle.
    1.2 - Main command changed to a menu, sub-commands are still normal commands.
    1.3 - Code cleanup, added a check if spawnkiller is enabled.
    1.3a - Minor fix.
    Attached Files
    File Type: inc ph_autorespawn.inc (511 Bytes, 601 views)
    File Type: sp Get Plugin or Get Source (ph_autorespawn.sp - 680 views - 19.1 KB)
    __________________

    Last edited by PinHeaDi; 02-26-2018 at 23:42.
    PinHeaDi is offline
    krillex1
    Junior Member
    Join Date: Sep 2012
    Old 01-04-2019 , 17:15   Re: [CS:GO] Autorespawn System (v1.3, 25-02-2018)
    Reply With Quote #2

    Hello!

    I can't get the .SMX file. Can you upload it again please?
    Love <3
    krillex1 is offline
    freak.exe_uLow
    AlliedModders Donor
    Join Date: Jul 2012
    Location: Germany
    Old 01-04-2019 , 18:26   Re: [CS:GO] Autorespawn System (v1.3, 25-02-2018)
    Reply With Quote #3

    Quote:
    Originally Posted by krillex1 View Post
    Hello!

    I can't get the .SMX file. Can you upload it again please?
    Love <3
    compiled with sm version 1.9
    Attached Files
    File Type: sp Get Plugin or Get Source (ph_autorespawn.sp - 307 views - 19.1 KB)
    File Type: smx ph_autorespawn.smx (21.5 KB, 363 views)

    Last edited by freak.exe_uLow; 01-04-2019 at 18:28.
    freak.exe_uLow is offline
    NofaseCZ
    Junior Member
    Join Date: Jan 2019
    Old 01-12-2019 , 16:58   Re: [CS:GO] Autorespawn System (v1.3, 25-02-2018)
    Reply With Quote #4

    Hello!

    I tested your plugin and everything works fine except BOTs remain dead and do not respawn. Seems like your plugin only affects the players. I am not skilled at plugin making so I will probably not help you with this one (I have only limited C++ knowledge). But if you would implement it would be appreciated.

    However, I am pleasantly surprised that your plugin works even on workshop maps. Nicely done!

    One more thing: Is there a way to activate your plugin on all maps in mapcycle.txt other than manually changing it via !autorespawnmenu ?

    Thanks in advance for any reply
    NofaseCZ is offline
    PinHeaDi
    Senior Member
    Join Date: Jul 2013
    Location: Bulgaria
    Old 04-26-2019 , 05:15   Re: [CS:GO] Autorespawn System (v1.3, 25-02-2018)
    Reply With Quote #5

    Quote:
    Originally Posted by NofaseCZ View Post
    One more thing: Is there a way to activate your plugin on all maps in mapcycle.txt other than manually changing it via !autorespawnmenu ?
    I can make a version for you that's just a permanent respawn for all of your maps, no need of mapcycle.txt, sorry for the late replay, I really didn't have any time back than.
    __________________

    Last edited by PinHeaDi; 04-26-2019 at 05:16.
    PinHeaDi is offline
    XHUNTERX
    Senior Member
    Join Date: Aug 2019
    Location: World
    Old 07-07-2020 , 21:30   Re: [CS:GO] Autorespawn System (v1.3, 25-02-2018)
    Reply With Quote #6

    Quote:
    //SourceMod Batch Compiler
    // by the SourceMod Dev Team


    //// ph_autorespawn.sp
    //
    // E:\PLUGINS\SM COMPILE\sourcemod-1.10.0-git6488-windows\addons\sourcemod\scripting\ph_autores pawn.sp(79) : warning 217: loose indentation
    // Code size: 34588 bytes
    // Data size: 11756 bytes
    // Stack/heap size: 16384 bytes
    // Total requirements: 62728 bytes
    //
    // 1 Warning.
    //
    // Compilation Time: 0,58 sec
    // ----------------------------------------

    Press enter to exit ...
    Help me pls...
    XHUNTERX is offline
    Stefanx
    Member
    Join Date: Feb 2018
    Location: Romania
    Old 07-08-2020 , 04:22   Re: [CS:GO] Autorespawn System (v1.3, 25-02-2018)
    Reply With Quote #7

    Quote:
    Originally Posted by XHUNTERX View Post
    Help me pls...

    this warning appear when the code not properly aligned. you can skip this warning because it does not influence the code in any way
    Stefanx 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 05:29.


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