Raised This Month: $51 Target: $400
 12% 

[TF2] SetFlagCaps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2497
Plugin Version:
1.0.1
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Set the number of flag captures a team has. Plugin also provides natives that allow other plugins to get/set flag captures.
    Old 08-15-2011 , 21:28   [TF2] SetFlagCaps
    Reply With Quote #1

    [TF2] SetFlagCaps
    Version 1.0.1



    Description:
    Allows admins to get/set the number of flag captures each team has.
    Also provides natives for plugins to get/set flag captures.
    Commands:
    • sm_setflagcaps <Red/Blue> <0-127>
      • Sets the number of caps Red or Blue team has to a value from 0-127.
    • sm_getflagcaps
      • Debugging command: Prints the number of caps each team has.
        Might be handy for rcon use.

    Cvars:
    • sm_setflagcaps_version
      • Plugin version

    Install Instructions:
    1. Place SetFlagCaps.smx into your addons/sourcemod/plugins/ folder.

    Developers:
    PHP Code:
    /**
     * Sets red team's number of flag captures.
     *
     * @return        True on success, false if value is incorrect or unable to set.
     */
    native bool:SetFlagCaps_Red(numCaps);

    /**
     * Sets blue team's number of flag captures.
     *
     * @return        True on success, false if value is incorrect or unable to set.
     */
    native bool:SetFlagCaps_Blue(numCaps);

    /**
     * Gets the number of flag captures red team has.
     *
     * @return        Number of captures (int).
     */
    native GetFlagCaps_Red();

    /**
     * Gets the number of flag captures blue team has.
     *
     * @return        Number of captures (int).
     */
    native GetFlagCaps_Blue(); 


    Version History:
    • V1.0.0
      • Initial Release
    • V1.0.1
      • Minor code cleanup

    Total downloads as prior to last edit: 125

    Not writing a plugin? Then you don't need the inc file!
    Attached Files
    File Type: inc SetFlagCaps.inc (1.0 KB, 315 views)
    File Type: sp Get Plugin or Get Source (SetFlagCaps.sp - 828 views - 5.1 KB)
    __________________

    Last edited by DarthNinja; 11-03-2012 at 15:05.
    DarthNinja is offline
     



    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 19:04.


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