Raised This Month: $7 Target: $400
 1% 

[TF2] Set Metal


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tylerst
Veteran Member
Join Date: Oct 2010
Plugin ID:
3135
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Set metal on target(s)
    Old 08-04-2012 , 18:26   [TF2] Set Metal
    Reply With Quote #1

    Set Metal

    Description: http://tinyurl.com/7wnd5g

    Cvars(default values shown)
    sm_smetal_version "1.0.0"

    sm_smetal_chat "1" - Show Set Metal changes in chat
    sm_smetal_log "1" - Log Set Metal commands


    Commands:
    sm_setmetal "target" "metal(0-1023)" -Default Slay Flag

    Examples:

    sm_setmetal @me 500 -Set your own metal to 500
    sm_setmetal TheJerk 0 -Set TheJerk's metal to 0
    sm_setmetal @red 200 -Set red team's metal to 200
    sm_setmetal @all 1000 -Set everyone's metal to 1000
    ...etc

    Changelog
    Code:
    Version 1.0.0 -August 4, 2012
    * Initial Release
    
    Version 1.0.1 - December 13, 2012
    *Small code tweak
    Attached Files
    File Type: sp Get Plugin or Get Source (SetMetal.sp - 1695 views - 2.2 KB)

    Last edited by Tylerst; 12-13-2012 at 16:09. Reason: feedback given
    Tylerst is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 08-04-2012 , 18:27   Re: [TF2] Set Metal
    Reply With Quote #2

    http://forums.alliedmods.net/showthread.php?t=77261 D:
    Sreaper is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 08-04-2012 , 18:29   Re: [TF2] Set Metal
    Reply With Quote #3

    Quote:
    Originally Posted by Sreaper View Post
    That does way more things than metal.

    Plus..my way is better and doesn't limit it to 200

    Last edited by Tylerst; 08-04-2012 at 18:30.
    Tylerst is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 08-04-2012 , 19:20   Re: [TF2] Set Metal
    Reply With Quote #4

    I'm not sure what I'm looking at for the description link but I think I understand the concept.
    Horsedick is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-25-2012 , 01:56   Re: [TF2] Set Metal
    Reply With Quote #5

    Please cache the value of g_hLog so you're not calling GetConVarBool inside a for loop.
    __________________
    DarthNinja is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 12-13-2012 , 16:10   Re: [TF2] Set Metal
    Reply With Quote #6

    Quote:
    Originally Posted by DarthNinja View Post
    Please cache the value of g_hLog so you're not calling GetConVarBool inside a for loop.
    Fixed


    Update to 1.0.1
    -Small code change
    Tylerst 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 02:41.


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