Raised This Month: $32 Target: $400
 8% 

[TF2] Admin Addcond


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TinyDeskEngineer
Junior Member
Join Date: May 2023
Location: Inside your walls
Plugin ID:
8459
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows admins to add/remove conditions on players
    Old 05-13-2023 , 08:41   [TF2] Admin Addcond
    Reply With Quote #1

    This plugin allows for admins to give/remove conditions on players in TF2, using the console commands sm_addcond and sm_removecond.

    sm_addcond takes a condition ID, and optionally a duration in seconds, as well as a target identifier. The command gives an infinite condition to the executing player by default. (To give an infinite duration condition to another player, enter -1 as the duration)
    sm_removecond takes a condition ID, and optionally a target identifier. The command targets the executing player by default.
    Both commands require admins to have the "cheats" flag enabled.

    Example commands:
    sm_addcond 5 -1 @red: Applies permanent Medigun Übercharge on all players on RED.
    sm_addcond 34 60: Applies Canteen crit boost to yourself for one minute.
    sm_removecond 7 @all: Immediately cancels any player's taunt, if they are performing one.

    Bugs: TFBots seem to be unable to be targeted by the commands, even though they should get targeted.
    Attached Files
    File Type: sp Get Plugin or Get Source (addcond.sp - 238 views - 1.7 KB)
    File Type: smx addcond.smx (5.6 KB, 133 views)

    Last edited by TinyDeskEngineer; 05-13-2023 at 10:10.
    TinyDeskEngineer is offline
    Hoto Cocoa
    Senior Member
    Join Date: Jun 2018
    Location: Somewhere
    Old 05-13-2023 , 09:57   Re: [TF2] Admin Addcond
    Reply With Quote #2

    https://forums.alliedmods.net/showthread.php?p=2243764
    https://forums.alliedmods.net/showthread.php?p=2713306
    ???
    __________________
    Hoto Cocoa is offline
    TinyDeskEngineer
    Junior Member
    Join Date: May 2023
    Location: Inside your walls
    Old 05-13-2023 , 10:08   Re: [TF2] Admin Addcond
    Reply With Quote #3

    Oh. I was not aware the second plugin existed. I knew of the first one, but that one only allowed a certain set of conditions and required configuration, so I created this.
    TinyDeskEngineer 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 17:24.


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