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

SoD Client Settings


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FrostbyteX
Senior Member
Join Date: Dec 2007
Plugin ID:
308
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A generic client settings plugin with external natives for other plugins to use.
    Old 03-03-2008 , 17:08   SoD Client Settings
    Reply With Quote #1

    SoD Settings

    Description


    Players don't want to memorize cvar names for every plugin on the server. They want a standard, graphical interface. No thinking involved. Just type "settings" and go.

    This plugin handles the settings standardization. Other plugins can hook into the settings menu and add their own customizable text and menu callbacks.

    Two instructive example plugins are included to demonstrate the plugin's capabilities.

    Setup & Upgrade

    Unzip sodsettings.zip to your game directory.

    Commands

    sm_settings - Displays the settings menu.

    Say "settings" to see the settings menu.

    Credits

    The SourceMod team and everyone whose plugins I reviewed to learn SourcePawn.

    Changelog

    3/03/2008 - Version 1.0.0 -
    Plugin release.
    Attached Files
    File Type: zip sodsettings.zip (6.9 KB, 1555 views)
    File Type: sp Get Plugin or Get Source (blockchat.sp - 890 views - 1.3 KB)
    File Type: sp Get Plugin or Get Source (displaysettings.sp - 870 views - 809 Bytes)

    Last edited by FrostbyteX; 03-03-2008 at 19:15.
    FrostbyteX is offline
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 03-03-2008 , 18:54   Re: SoD Client Settings
    Reply With Quote #2

    CS:S only?

    This really seems like something that ought to come with SM as a standard and plugin authors to be encouraged to develop their plugins with this in mind.

    Great idea!
    __________________
    Extreme_One is offline
    FrostbyteX
    Senior Member
    Join Date: Dec 2007
    Old 03-03-2008 , 19:15   Re: SoD Client Settings
    Reply With Quote #3

    No, it works for all mods. Forgot to set it!
    FrostbyteX is offline
    pRED*
    Join Date: Dec 2006
    Old 03-03-2008 , 19:25   Re: SoD Client Settings
    Reply With Quote #4

    Quote:
    Originally Posted by Extreme_One View Post
    This really seems like something that ought to come with SM as a standard and plugin authors to be encouraged to develop their plugins with this in mind.
    It is planned, just hasn't eventuated yet
    pRED* is offline
    FrostbyteX
    Senior Member
    Join Date: Dec 2007
    Old 03-03-2008 , 19:58   Re: SoD Client Settings
    Reply With Quote #5

    pRED, that plugin was all back-end storage of settings. This is just a GUI. You could easily combine them to make an all-encompassing preferences plugin, though. That's a neat idea.

    Steve
    FrostbyteX is offline
    Nomarky
    SourceMod Donor
    Join Date: Sep 2007
    Old 05-23-2008 , 10:38   Re: SoD Client Settings
    Reply With Quote #6

    How would I make a simple plugin for this, so that when a player chooses a menu option it triggers a chat message? I.E. A player chooses the 'website' option from the menu, which triggers the player to say 'website' which would then trigger the webshortcuts plugin to bring up the website.

    I can make the options appear in the menu, but I can't figure out how to make them do what I would like.

    Any help much appreciated!
    Nomarky is offline
    FrostbyteX
    Senior Member
    Join Date: Dec 2007
    Old 05-30-2008 , 13:11   Re: SoD Client Settings
    Reply With Quote #7

    Quote:
    Originally Posted by Nomarky View Post
    How would I make a simple plugin for this, so that when a player chooses a menu option it triggers a chat message? I.E. A player chooses the 'website' option from the menu, which triggers the player to say 'website' which would then trigger the webshortcuts plugin to bring up the website.

    I can make the options appear in the menu, but I can't figure out how to make them do what I would like.

    Any help much appreciated!
    Hook the "OnSettingsChanged" forward and then call GetMenuItem to get information about the menu item selected. This forward gets called for all menu items; if you just want to announce for the items you added, then check the ID of the menu item, as shown in the examples.

    I'm about to release some plugins that use this, so if you need more examples, they are coming.

    Steve
    FrostbyteX is offline
    Nomarky
    SourceMod Donor
    Join Date: Sep 2007
    Old 05-30-2008 , 13:48   Re: SoD Client Settings
    Reply With Quote #8

    Thanks, some examples would be great!
    Nomarky is offline
    Gossamer
    Member
    Join Date: Apr 2009
    Old 04-19-2009 , 01:53   Re: SoD Client Settings
    Reply With Quote #9

    I'm getting a failed to compile error when downloading it
    Gossamer is offline
    KaiserJeeĈ
    Member
    Join Date: Dec 2009
    Old 03-11-2010 , 04:31   Re: SoD Client Settings
    Reply With Quote #10

    would be great with a resetrank function.. for the sod-stats
    KaiserJeeĈ 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 03:20.


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