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

[CS:GO] Rotate server graphics banners (v0.3, 2015-3-8)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
hitmany
Senior Member
Join Date: Jul 2010
Plugin ID:
4383
Plugin Version:
0.3
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Rotates sv_server_graphic1 banners
    Old 10-12-2014 , 15:32   [CS:GO] Rotate server graphics banners (v0.3, 2015-3-8)
    Reply With Quote #1

    Description:

    This is a simple plugin based on sv_server_graphic1 cvar. For rotating your graphics banners. Banners are displayed only for spectators.
    Plugin changes the banners after a map change.

    Screenshot. What is the graphics banners?

    Cvars:

    sm_graphics_file (def "graphics.txt")
    File to read the banners names from. Useful if you're running multiple servers from one installation, and want to use different banners per server.

    sm_graphics_random (def "0")
    Banners are changing in turns or randomly? 0 - by rotation, 1 - randomly.

    Note:

    You must remove sv_server_graphic1 cvar from your server configs.
    Plugin enables the banner after first map change.
    File format png or jpg, image size 360x60 px, file size of the banner is not strictly greater than 16 Kbytes
    If the banner is not displayed - disable plugin and put in server.sfg sv_server_graphic1 "yourbanner.png"
    Change the map twice and if the banner does not appear to observers banner file against the rules.

    Installation:
    Drop sv_server_graphic_rotator.smx in addons/sourcemod/plugins/
    Drop sv_server_graphic_rotator.sp in addons/sourcemod/scripting/
    Drop graphics.txt in addons/sourcemod/configs/
    Drop your banners files to /csgo directory
    Change your file name in graphics.txt

    By default the plugin reads the banners names from configs/graphics.txt, which has this format:
    Code:
    "Graphics"
    {
    	"1"
    	{
    		"file"		"banner.png"
    	}
    	"2"
    	{
    		"file"		"steamgroup.png"
    	}
    }
    Changelog
    Quote:
    2015-3-8 (v0.3)

    * Fixed bug with only 1 banner (thanks AlmazON)
    * Added FCVAR_NOTIFY cvar "graphicrotator_version"
    * SetConVarString used instead ServerCommand

    2014-10-13 (v0.2)

    * Added sm_graphics_random cvar.
    * Fixed bug with rotation after sm_graphics_file changes.

    2014-10-12 (v0.1)

    * Initial release.
    Attached Files
    File Type: txt graphics.txt (138 Bytes, 4211 views)
    File Type: sp Get Plugin or Get Source (sv_server_graphic_rotator.sp - 7330 views - 2.0 KB)

    Last edited by hitmany; 11-20-2016 at 14:53. Reason: added notice
    hitmany 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 14:03.


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