Raised This Month: $ Target: $400
 0% 

[ANY] Advanced Godmode


Post New Thread Reply   
 
Thread Tools Display Modes
Author
GoldTreeServers
Senior Member
Join Date: Dec 2012
Plugin ID:
3981
Plugin Version:
1.5.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    96 
    Plugin Description:
    Advanced Godmode for admins!
    Old 12-01-2013 , 15:02   [ANY] Advanced Godmode
    Reply With Quote #1

    [ANY] Advanced Godmode

    Description:
    This plugin allows admins with the Slay flag to toggle godmode on themselves!

    Commands:
    sm_god - Player will take no damage
    sm_buddha - Player will take no damage, but will still react to it (like rocket jumping).
    sm_mortal - Makes the player mortal (removes all godmode effects).

    Overrides:
    sm_ag_other: Allow give god / buddha other players.

    Godmode Features:
    ANY: No block.
    TF2: Sentrys not targetting.
    TF2: Pyro can't deflected. (Air blast)
    TF2: Sniper can't jarated player. (1.1.1)
    TF2: Scout can't milked player. (1.1.1)
    CSS: No flash. (1.3.0)


    Cvars:
    sm_ag_version - Plugin version
    sm_ag_removaltype - 0 = Disabled, 1 = Removes godmode when an attack key is pressed, 2 = Removes godmode when a player hurts a player, 3 = Removes godmode when a player killed a player.
    sm_ag_noclipgod - 0 - Disabled. 1 - Gives godmode to admin whenever he activates noclip.
    sm_ag_auto_update - 0 = Disabled 1 = Enables automatic plugin updating (has no effect if Updater is not installed)
    sm_ag_spawn - 0 = Players automatically spawn with mortal, 1 = Players spawn automatically with godmode, 2 = Players spawn automatically with buddha.
    sm_ag_remembergodmode - 0 = Disabled, 1 = If player somehow dies and he had godmode he will be given godmode automatically when he respawns.

    Install Instructions:
    Download AdvancedGodmode.smx
    Place AdvancedGodmode.smx into your addons/sourcemod/plugins/ folder.

    Special Thanks:
    Seb3pg (TF2 Godmode for Admins)
    SWAT_88 (No Block)
    FlaminSarge (Jar of Ants)

    Todo:
    Nothing

    Changelog:

    1.5.1
    • Fixed: On HL2DM you no longer respawn instantly when using invisible noclip.
    • Fixed: When player go noclip remove all weapons. No more only one per slot.
    • Added: Give default weapons on HL2DM when disabling noclip.
    1.5.0
    • Added: Cvar to allow admins come invisible.
    • Added: Cvar if admin is on noclip stop player hold C4.
    • Added: Cvar if admin is on noclip stop player pick up items.
    1.4.0
    • Added: Override "sm_ag_other" Allow give god / buddha other players.
    • Added: Admin activity messages.
    • Added: Cvar to remember godmode.
    • Added: Cvar to make all players godmode when spawning.
    • Many bug fixes.
    1.3.0
    • Added: Supports any games.
    • Added: CSS no flash!
    1.2.0
    • Added: Updater
    • Added: Give godmode when admin give themself noclip.
    1.1.1
    • Added: Player no longer get jarated / milked. (FlaminSarge: Jar of Ants)
    • Bug fix: Not showing disabling message.
    • Bug fix: If player death and he have godmode "Godmode" and "Buddha" bool not changing false.
    1.1.0
    • Changed: All players can now use "sm_mortal" command.
    • Added: Targets.
    • Added: Two new removal type: If player hurt a player and if player killed a player.
    • Added: API!!!
    1.0.0
    • Release
    Attached Files
    File Type: inc AG.inc (875 Bytes, 1198 views)
    File Type: sp Get Plugin or Get Source (AdvancedGodmode.sp - 10830 views - 19.2 KB)
    File Type: smx AdvancedGodmode.smx (14.8 KB, 2260 views)

    Last edited by GoldTreeServers; 03-15-2014 at 11:27.
    GoldTreeServers is offline
    GoldTreeServers
    Senior Member
    Join Date: Dec 2012
    Old 12-01-2013 , 16:41   Re: Advanced Godmode
    Reply With Quote #2

    Information for Developers

    PHP Code:
    /**
     * Get a clients godmode status
     * 
     * @param client    Client
     * @return        Godmode status
     */
    native IsPlayerOnGodmode(client);

    /**
     * Get a clients buddha status
     * 
     * @param client    Client
     * @return        Buddha status
     */
    native IsPlayerOnBuddha(client);

    /**
     * Get a clients mortal status
     * 
     * @param client    Client
     * @return        Mortal status
     */
    native IsPlayerMortal(client);

    /**
     * Sets a clients godmode status
     *
     * @param client        Client
     * @return            Nothing
     */
    native GiveToPlayerGodmode(client);

    /**
     * Sets a clients buddha status
     *
     * @param client        Client
     * @return            Nothing
     */
    native GiveToPlayerOnBuddha(client);

    /**
     * Sets a clients mortal status
     *
     * @param client        Client
     * @return            Nothing
     */
    native MakePlayerMortal(client); 
    Example
    Make player mortal if player have godmode / buddha.
    PHP Code:
    if(IsPlayerMortal(client) != true)
    {
        
    MakePlayerMortal(client);


    Last edited by GoldTreeServers; 12-02-2013 at 09:23.
    GoldTreeServers is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 12-01-2013 , 20:27   Re: Advanced Godmode
    Reply With Quote #3

    We already have so many plugins for this, this is bound to be unapproved.

    See:

    - [Any] Deluxe Godmode - This one is exactly like yours and it was released back in 2009. It still works perfectly, too.
    - SM Godclip
    - Godmode on Spawn
    - Godmode Until Attack
    - [ANY] Advanced God Mode + Spawn w/ God Mode - I made this plugin, it was released back in February of this year, and it was Unapproved because it did everything that Deluxe Godmode did.

    So yeah, sorry to tell you what I told you, but this is going to be unapproved.

    EDIT: Just noticed your features list which includes anti-airblasting, sentries not targetting, etc. Whether or not that is enough to save this plugin from doom isn't up to me, but I will download the source code of this to see how it works because making players unable to be airblasted is something I've always wanted to figure out.

    Last edited by 404UserNotFound; 12-01-2013 at 20:33.
    404UserNotFound is offline
    GoldTreeServers
    Senior Member
    Join Date: Dec 2012
    Old 12-02-2013 , 01:46   Re: Advanced Godmode
    Reply With Quote #4

    I know about unapproved. I only wanted public this because many times when admin try find rule breaker name sentrys targetting him and pyros like air blast. So this help admins to make their job.

    - Sorry bad english
    GoldTreeServers is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 12-02-2013 , 02:18   Re: Advanced Godmode
    Reply With Quote #5

    Quote:
    Originally Posted by GoldTreeServers View Post
    I know about unapproved. I only wanted public this because many times when admin try find rule breaker name sentrys targetting him and pyros like air blast. So this help admins to make their job.

    - Sorry bad english
    It's ok! Instead of making a god mode plugin, why not separate the functions and make smaller plugins, like "[TF2] Can't Be Airblasted", and "[TF2] Anti-Sentry Targetting", because the godmode aspect of this plugin has been done to death.
    404UserNotFound is offline
    GoldTreeServers
    Senior Member
    Join Date: Dec 2012
    Old 12-02-2013 , 02:51   Re: Advanced Godmode
    Reply With Quote #6

    Quote:
    Originally Posted by abrandnewday View Post
    It's ok! Instead of making a god mode plugin, why not separate the functions and make smaller plugins, like "[TF2] Can't Be Airblasted", and "[TF2] Anti-Sentry Targetting", because the godmode aspect of this plugin has been done to death.
    Good idea but I want make this godmode plugin best godmode plugin Today coming targetting, two new removal type: if player hurt / killed player and maybe one cool(Maybe cool?) feature
    GoldTreeServers is offline
    GoldTreeServers
    Senior Member
    Join Date: Dec 2012
    Old 12-02-2013 , 09:20   Re: Advanced Godmode
    Reply With Quote #7

    UPDATE!

    1.1.0

    - Changed: All players can now use "sm_mortal" command.
    - Added: Targets.
    - Added: Two new removal type: If player hurt a player and if player killed a player.
    - Added: API!!! (Useaful for me so I added it)

    UPDATE!

    1.2.0

    - Added: Updater
    - Added: Give godmode when admin give themself noclip.

    NEW UPDATE!

    1.3.0

    - Added: Supports any games.
    - Added: CSS no flash!

    Last edited by GoldTreeServers; 12-03-2013 at 11:13.
    GoldTreeServers is offline
    BlackStarTF
    New Member
    Join Date: Dec 2013
    Old 12-04-2013 , 12:28   Re: [ANY] Advanced Godmode
    Reply With Quote #8

    Yeah, we installed this plugin to our private server, and it has been quite useful at a time.
    Would highly recommend this plugin, as it allows admins to not be pushed back and so on.
    Also the noclip-godmode is amazing.

    Last edited by BlackStarTF; 12-04-2013 at 12:29.
    BlackStarTF is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 12-04-2013 , 12:41   Re: [ANY] Advanced Godmode
    Reply With Quote #9

    You've proved me wrong, GoldTreeServers.

    This plugin has turned out pretty damn excellent.
    404UserNotFound is offline
    GoldTreeServers
    Senior Member
    Join Date: Dec 2012
    Old 12-05-2013 , 12:46   Re: [ANY] Advanced Godmode
    Reply With Quote #10

    Quote:
    Originally Posted by BlackStarTF View Post
    Yeah, we installed this plugin to our private server, and it has been quite useful at a time.
    Would highly recommend this plugin, as it allows admins to not be pushed back and so on.
    Also the noclip-godmode is amazing.
    Good to hear you like

    Quote:
    Originally Posted by abrandnewday View Post
    You've proved me wrong, GoldTreeServers.

    This plugin has turned out pretty damn excellent.
    Thanks

    NEW UPDATE!!! WOHOO!!!

    Added: Override "sm_ag_other" Allow give god / buddha other players.
    Added: Admin activity messages.
    Added: Cvar to remember godmode.
    Added: Cvar to make all players godmode when spawning.
    Many bug fixes.
    __________________

    Last edited by GoldTreeServers; 12-05-2013 at 12:49.
    GoldTreeServers 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 18:50.


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