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

[ANY] RulesOverlays [v.1.0]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
animalnots
Senior Member
Join Date: Dec 2012
Plugin ID:
3429
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Force a Player to read & agree the Rules (overlay) on connect
    Old 12-27-2012 , 06:02   [ANY] RulesOverlays [v.1.0]
    Reply With Quote #1

    Curent Version: v1.0

    Description:
    Force a Player to read & agree the Rules (overlay) on connect. Made for CSS but should work on other mods as well.
    Example Screenshot:
    Edit: Need an overlay example ))...

    Requirements:
    morecolors

    Translations :
    *Russian
    *English
    pm with translation to add

    Cvars:
    Automade on first load.
    Code:
    Code:
    // This file was auto-generated by SourceMod (v1.4.6)
    // ConVars for plugin "rulesoverlays.smx"
    
    
    // Path to overlay without extensions at the end and materials folder at the beginning. Without starting slash!
    // -
    // Default: "overlays/rulesoverlays/rules"
    sm_ro_path "overlays/rulesoverlays/rules"
    
    // Trigger to agree rules
    // -
    // Default: "!agree"
    sm_ro_triggeragree "!agree"
    
    // Alternative Trigger to agree rules
    // -
    // Default: "!согласен"
    sm_ro_triggeragree2 "!согласен"
    
    // Trigger to show rules
    // -
    // Default: "!rules"
    sm_ro_triggerrules "!rules"
    
    // Version of RulesOverlays plugin
    // -
    // Default: "1.0"
    sm_rulesoverlays "1.0"
    Commands:
    sm_ro reset - Force all clients disagree the rules (root flag required)
    !agree - Stops showing rules (no flag required) (default)
    !rules - Shows rules overlay (no flag required)

    To install:
    Unzip in cstike/
    Edit convar sm_ro_path as you wish.

    The path should not contain anything other that paths to overlay. The overlay should be placed in materials folder.

    Example of sm_ro_path:
    Code:
    sm_ro_path "overlays/rulesoverlays/rules"
    Real paths of file would be:
    Code:
    materials/overlays/rulesoverlays/rules.vmt
    materials/overlays/rulesoverlays/rules.vtf
    NOTE THE DIFFERENCE IN convar AND REAL PATHS. THE PLUGIN AUTOMATICALLY adds 2 files (vmt and vtf) from that 1 line in ads.txt. Moreover do not write "materials/" part in your overlay path!
    Overlays Tutorial:
    Basically you need a transparent image (1024x1024 sized), then you can add layers with your rules.
    Note that probably you should transform your ad (change from 100% to 75% of original wide) to make it look good. Then, when you have a 1024x1024 png or tga image, you should use a png\tga to vtf converter. A plugin for Paint.net can be found here http://nemesis.thewavelength.net/index.php?c=225 , it works ). When you got vtf, you need vmt.
    I used this example, you need to change only path to file:
    example.vmt:
    Code:
    "UnlitGeneric"
    {
    	// Original shader: BaseTimesVertexColorAlphaBlendNoOverbright
    	"$translucent" 1
    	  "$basetexture" "overlays\rulesoverlays\rules"
    	//"$vertexcolor" 1
    	"$no_fullbright" 1
    	"$ignorez" 1
    }
    Credits:
    If anyone can make a good overlay example I will update the plugin and give credits. Also see [ANY] AdsOverlays [v.1.1]
    Attached Files
    File Type: sp Get Plugin or Get Source (rulesoverlays.sp - 615 views - 15.1 KB)
    File Type: zip rulesoverlays v.1.0.zip (24.0 KB, 915 views)
    __________________
    STEAM is the best of the west
    Quote:
    Never argue with an idiot. He lowers you to his level and then wins on experience!

    Last edited by animalnots; 12-27-2012 at 15:01. Reason: Attached files
    animalnots is offline
    serpentine
    I don't have a problem
    Join Date: Feb 2011
    Location: Madison, WI
    Old 12-27-2012 , 06:56  
    Reply With Quote #2

    Looks cool. Players must type !agree to make the image go away? Possible to just use a menu with 1 being agree, 2 being disagree?
    __________________
    serpentine is offline
    animalnots
    Senior Member
    Join Date: Dec 2012
    Old 12-27-2012 , 07:08   Re: [ANY] RulesOverlays [v.1.0]
    Reply With Quote #3

    May be, why not. Though current version (1.0) has no menus.
    __________________
    STEAM is the best of the west
    Quote:
    Never argue with an idiot. He lowers you to his level and then wins on experience!

    Last edited by animalnots; 12-27-2012 at 07:08.
    animalnots is offline
    samsah
    AlliedModders Donor
    Join Date: Mar 2008
    Location: Finland
    Old 12-27-2012 , 08:02   Re: [ANY] RulesOverlays [v.1.0]
    Reply With Quote #4

    How about this: add option to make it use randomly given triggers to agree rules, so players have to atleast read chat to see what command makes overlay go away
    Also, that admin immunity(editable flag)
    __________________
    samsah is offline
    animalnots
    Senior Member
    Join Date: Dec 2012
    Old 12-27-2012 , 08:57   Re: [ANY] RulesOverlays [v.1.0]
    Reply With Quote #5

    Quote:
    Originally Posted by samsah View Post
    How about this: add option to make it use randomly given triggers to agree rules, so players have to atleast read chat to see what command makes overlay go away
    Also, that admin immunity(editable flag)
    Random Triggers Sound interesting, why admin immunity? Are they exceptional players or should obey rules as well ?
    __________________
    STEAM is the best of the west
    Quote:
    Never argue with an idiot. He lowers you to his level and then wins on experience!

    Last edited by animalnots; 12-27-2012 at 08:57.
    animalnots is offline
    captaindeterprimary
    AlliedModders Donor
    Join Date: Sep 2012
    Old 12-27-2012 , 15:29   Re: [ANY] RulesOverlays [v.1.0]
    Reply With Quote #6

    Quote:
    Originally Posted by animalnots View Post
    Random Triggers Sound interesting, why admin immunity? Are they exceptional players or should obey rules as well ?
    I know that feel, I really really really REAAAAALLY dislike people that want their admins to have a special set of rules, however a random command hide in the rules that would change with different overlays with the same rules would be cool, it would require different overlays for each one yes however it would make it so they have to actual read the rules. And if you do add admin immunity then I will defiantly be removing that, then recompling, also if I get this installed I will one-up your screenshot to video.
    __________________
    Last edited by ; Today at 08:20 AM. Reason: Get rid of s

    Last edited by captaindeterprimary; 12-27-2012 at 15:30.
    captaindeterprimary is offline
    animalnots
    Senior Member
    Join Date: Dec 2012
    Old 12-27-2012 , 15:45   Re: [ANY] RulesOverlays [v.1.0]
    Reply With Quote #7

    Quote:
    Originally Posted by vman315 View Post
    I know that feel, I really really really REAAAAALLY dislike people that want their admins to have a special set of rules, however a random command hide in the rules that would change with different overlays with the same rules would be cool, it would require different overlays for each one yes however it would make it so they have to actual read the rules. And if you do add admin immunity then I will defiantly be removing that, then recompling, also if I get this installed I will one-up your screenshot to video.
    I don't really want to add any sort of immunity. It's not that sort of thing that will annoy 1000 times. Im willing for a video or a screenshot. Different overlays takes space and time to connect, though using a http download server will ease that very much. But random trigger or a sort of "captcha" can be implemented in chat.
    __________________
    STEAM is the best of the west
    Quote:
    Never argue with an idiot. He lowers you to his level and then wins on experience!
    animalnots is offline
    captaindeterprimary
    AlliedModders Donor
    Join Date: Sep 2012
    Old 12-27-2012 , 15:58   Re: [ANY] RulesOverlays [v.1.0]
    Reply With Quote #8

    Quote:
    Originally Posted by animalnots View Post
    I don't really want to add any sort of immunity. It's not that sort of thing that will annoy 1000 times. Im willing for a video or a screenshot. Different overlays takes space and time to connect, though using a http download server will ease that very much. But random trigger or a sort of "captcha" can be implemented in chat.
    Yea that would be great! I want to make sure that my admins know the rules as-well, I always hated it when admins get special treatment. Hell I have my server sm_immunity_mode set to 0 (no immunity), because I have my admins because I trust them, however I remember being a regular admin and the root joined the server, I was spamming sounds just to show him up, I knew that I could not target him so did he, I did it to show him that some of the complaints that he was receiving from the players about the new admins was in fact true.

    .... Wait I just read it while typing this does this use clientprefs to show once or on every connect?
    __________________
    Last edited by ; Today at 08:20 AM. Reason: Get rid of s
    captaindeterprimary is offline
    animalnots
    Senior Member
    Join Date: Dec 2012
    Old 12-27-2012 , 16:13   Re: [ANY] RulesOverlays [v.1.0]
    Reply With Quote #9

    Quote:
    Originally Posted by vman315 View Post
    Yea that would be great! I want to make sure that my admins know the rules as-well, I always hated it when admins get special treatment. Hell I have my server sm_immunity_mode set to 0 (no immunity), because I have my admins because I trust them, however I remember being a regular admin and the root joined the server, I was spamming sounds just to show him up, I knew that I could not target him so did he, I did it to show him that some of the complaints that he was receiving from the players about the new admins was in fact true.

    .... Wait I just read it while typing this does this use clientprefs to show once or on every connect?
    It uses local database on the server, so you can manage it entirely. If client agrees once, he is supposed to know the rules, and is never asked again (until you want to update your rules , and then you use !ro reset command as root that resets agree flag for every client so that he should accept it again). In any case(if one forgets or any other case) a player can type !rules or whatever trigger you set and the same overlay will pop up.
    __________________
    STEAM is the best of the west
    Quote:
    Never argue with an idiot. He lowers you to his level and then wins on experience!
    animalnots is offline
    captaindeterprimary
    AlliedModders Donor
    Join Date: Sep 2012
    Old 12-27-2012 , 16:24   Re: [ANY] RulesOverlays [v.1.0]
    Reply With Quote #10

    Okay Cool
    __________________
    Last edited by ; Today at 08:20 AM. Reason: Get rid of s
    captaindeterprimary 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 15:51.


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