Raised This Month: $95 Target: $400
 23% 

On client connect rules


Post New Thread Reply   
 
Thread Tools Display Modes
Author
killman2639
Junior Member
Join Date: Sep 2010
Plugin ID:
2259
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 03-03-2011 , 17:22   On client connect rules
    Reply With Quote #1

    Connect Rules - by killman2639

    This Plugin function is when the client connect it freezes him and prints to the chat the rules, Then it creates a menu that says "do you agree to our rules" if yes then the client is allowed to stay and lets the player move, if not kick the client . Now with join sounds

    How to add your own rules?

    To add your own rules you have to goto Mod\addons\sourcemod\translations and in that folder open the "ConnectRules.phrases.txt" there replace the "* Your rule here" with your custom rule (depending on your language).

    Server cvar

    sm_connectrules 1/0 enables the plugin (a .cfg file will be created in "\mod\cfg\sourcemod". File name: ConnectRules_config.cfg)
    sm_connectrules_sounds 1/0 Connect sound status on/off, Default if 0 so if you want a sound change it to 1
    sm_connectrules_sound connect sound name (has to be in sound\custom\filename.extension)

    Change Log

    • Added sound and freeze a player bug fixed
    Attached Files
    File Type: txt ConnectRules.phrases.txt (736 Bytes, 1063 views)
    File Type: zip Connect rules.zip (7.7 KB, 1568 views)
    File Type: sp Get Plugin or Get Source (ConnectRules.sp - 1605 views - 3.9 KB)

    Last edited by DarthNinja; 11-03-2011 at 23:24. Reason: removed compiled attachment. compiles fine on forums.
    killman2639 is offline
    killman2639
    Junior Member
    Join Date: Sep 2010
    Old 03-05-2011 , 23:50   Re: On client connect rules
    Reply With Quote #2

    New version now with sounds
    killman2639 is offline
    CenT
    Senior Member
    Join Date: Aug 2009
    Location: FRANCE
    Old 06-22-2011 , 21:59   Re: On client connect rules
    Reply With Quote #3

    Good evening, are that it is possible that the display rules are in the form of menu ?
    For my part I would use that if the display of rules is displayed as a menu.

    Your plugin am interested especially for multilanguage support

    If so you have the ability to add customer order "!rules" or "rules" in the chat for the display of rules ?

    Thank you for your understanding.

    ~Sorry for my English~

    Last edited by CenT; 06-22-2011 at 22:04.
    CenT is offline
    away000
    Veteran Member
    Join Date: Sep 2010
    Old 06-22-2011 , 22:19   Re: On client connect rules
    Reply With Quote #4

    And a kick/ban both teams if the player not accept the rules?

    Like "Read and Accept The Rules before Can Join!"

    And ban team i say is put directly on Spec and prevent from teamjoin before accept....

    The sounds will be awsome to advertise abou rules menu =D
    away000 is offline
    j0k4w1ld
    Member
    Join Date: Jul 2010
    Old 06-24-2011 , 07:07   Re: On client connect rules
    Reply With Quote #5

    can u provide images
    __________________
    ------------------------------------------------
    j0k4w1ld is offline
    Cuz
    Senior Member
    Join Date: May 2007
    Location: Alaska
    Old 07-08-2011 , 22:02   Re: On client connect rules
    Reply With Quote #6

    Nice !

    Anyway the Rules could be added into the menu above the Yes/No (So they stay visible longer) ?

    Also would it be possible to make this so the plugin only asked on the client's on the first connect to the server and not with every map change ?

    Maybe a flag option so Admin and Members would not see it ?

    Last edited by Cuz; 07-08-2011 at 22:06.
    Cuz is offline
    Shona
    Member
    Join Date: Oct 2008
    Old 10-16-2011 , 08:46   Re: On client connect rules
    Reply With Quote #7

    Hello killman2639,

    can you pls update the plugin?

    The players are not freezed in tf2 so they can play on the server without pressing a number to accept or not.

    Next thing is what Cuz is saying "Anyway the Rules could be added into the menu above the Yes/No (So they stay visible longer) ?" is better then in the Chat because 90% of players do not read the chat.

    I hope you read this and you can make an update

    cheers,
    Shona
    Shona is offline
    poppin-fresh
    AlliedModders Donor
    Join Date: Aug 2010
    Old 11-05-2011 , 23:14   Re: On client connect rules
    Reply With Quote #8

    can you add images. and add an option for the rules to be for certain teams? And maybe different rules for the different teams
    poppin-fresh is offline
    Pinkfloyd
    Member
    Join Date: Feb 2010
    Old 04-28-2012 , 12:25   Re: On client connect rules
    Reply With Quote #9

    Hi all.

    I cant make this work im afraid.

    The warning comes up, but you can ignore it ( press 0 ) and then nothing happens.

    Ive tried the re-compile but that makes no difference.

    Can we remove the "0" - Exit Menu option? It seems pointless having it there.

    Also, how can I change the time delay from the rules from dissappearing?

    Any ideas fellas?

    Many many thanks

    Last edited by Pinkfloyd; 04-28-2012 at 13:03.
    Pinkfloyd is offline
    rtrd
    New Member
    Join Date: Jul 2016
    Old 07-22-2016 , 19:04   Re: On client connect rules
    Reply With Quote #10

    Do you know how to add more lines, becouse the 10 lines aren't enough.
    becouse i want to say to chat Banned weapons and I want more lines then just 10...
    OR Tell me the addon or plugin what is just banning weapons (I mean like the player cannot even have it in the hand)

    -=Sorry For My English=-

    Last edited by rtrd; 07-22-2016 at 19:05.
    rtrd 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 17:04.


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