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

[ANY] Simpler, Multilingual Welcome Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author
simoneaolson
Member
Join Date: Sep 2009
Plugin ID:
1674
Plugin Version:
1.01
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Displays a simple welcome message to every client, light on the sever, multilingual, not bloatware!
    Old 05-18-2010 , 19:13   [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #1

    DESCRIPTION:

    A nice plugin if you want a simple "Welcome" message sent to each client when they connect in their own language. This plugin offers several improvements over (Simple Welcome Message). One being that the plugin will not bog down the server with 23kb of code. Second, this plugin displays a static welcome message in any language supported by sourcemod.


    CVARS:

    "swm2_enable" - Enable/Disable Plugin, Default:1
    "swm2_mode" - When to display the message 1=When the player joins a team, 2=X seconds after joining; Default:1
    "swm2_timer1" - IF sm2_mode=1, When the message should be displayed after the player joins a team (seconds); Default:7.0
    "swm2_timer2" - IF sm2_mode=2, When the message should be displayed after the player joins the server (seconds); Default:22.0
    "swm2_method" - How to display the welcome message to the client 1=Hint text, 2=Center Text"; Default:1

    CHANGELOG:

    v1.0 - Initial release
    v1.01 -
    * Implemented GetClientSerial/GetClientFromSerial in timers (thanks psychonic)
    * Used MAX_NAME_LENGTH
    * Added functionality to display welcome message when a client first joins a team


    Supported Languages:

    chi, cze, da, de, en, es, fr, hu, it, jp, ko, lv, nl, no, pl, pt, ru, sv, tr, zho

    *Updated translations: ru, pt


    Installation:

    (1) Setup Sourcemod on your server (Guide Here)
    (2) Download the plugin (.smx) and the translations (.txt)
    (3) Place the .txt file in: <game folder>\addons\sourcemod\translations
    (4) Place the .smx file in: <game folder>\addons\sourcemod\plugins
    (5) Restart the server
    Attached Files
    File Type: sp Get Plugin or Get Source (simplerwelcomemsg.sp - 3014 views - 4.5 KB)
    File Type: txt simplerwelcomemsg.phrases.txt (477 Bytes, 2108 views)

    Last edited by simoneaolson; 12-10-2010 at 18:27.
    simoneaolson is offline
    dax563
    New Member
    Join Date: Jun 2010
    Old 06-09-2010 , 05:44   Re: [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #2

    Was wondering could you post on how to put this plug-in in
    many thanks
    dax563 is offline
    Darkthrone
    Senior Member
    Join Date: Jun 2009
    Old 06-09-2010 , 06:06   Re: [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #3

    Code:
            "ru"        "Приветствовать"
    should be
    Code:
            "ru"        "Добро пожаловать"
    __________________
    all the best for your Zombie:Reloaded server
    Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

    Darkthrone is offline
    simoneaolson
    Member
    Join Date: Sep 2009
    Old 06-09-2010 , 16:47   Re: [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #4

    Quote:
    Originally Posted by Darkthrone View Post
    Code:
            "ru"        "Приветствовать"
    should be
    Code:
            "ru"        "Добро пожаловать"
    Thanks for the correction Darkthrone! Corrections for any of the other languages would be greatly appreciated as well.
    simoneaolson is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 07-26-2010 , 23:55   Re: [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #5

    Installed on Bassline TF2. You can connect and test on my server with the IP in my signature.
    Drixevel is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 12-10-2010 , 09:35   Re: [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #6

    @ simoneaolson
    Passing client indexes through to async callbacks such as timers is generally a bad idea, especially for a length of more than a second or two. If a client disconnects, the next client to reconnect will have the same client index. This can easily happen within 22 seconds, leading to a client getting the welcome message twice or even more. Using GetClientSerial/GetClientFromSerial or GetClientUserId/GetClientOfUserId is generally a better idea.

    Also, for name length, using the global MAX_NAME_LENGTH define is technically safer than hardcoding 32. If the max gets raised or lowered, either globally or for a specific engine, only a plugin recompile is needed to adjust, no actual code changes.

    As a suggestion, why not also pass the client name to the translation rather than hardcoding it to be after the message?
    psychonic is offline
    Matheus28
    Senior Member
    Join Date: Aug 2009
    Old 12-10-2010 , 18:04   Re: [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #7

    Portuguese translation:

    "Boas-vindas" is correct, but most servers would prefer "Bem Vindo"
    Matheus28 is offline
    simoneaolson
    Member
    Join Date: Sep 2009
    Old 12-10-2010 , 18:28   Re: [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #8

    Quote:
    Originally Posted by Matheus28 View Post
    Portuguese translation:

    "Boas-vindas" is correct, but most servers would prefer "Bem Vindo"
    Updated the translation, thanks!
    simoneaolson is offline
    Excel Gamers
    Member
    Join Date: Jul 2011
    Old 08-11-2011 , 00:44   Re: [ANY] Simpler, Multilingual Welcome Message
    Reply With Quote #9

    Any chance you could add it so you could change the message to anything you like and have it displayed in GREEN in normal chat as if an admin is sent you it. e.g. Welcome to Excel Gamers Jailbreak server M4
    Excel Gamers is offline
    DIMEDROLL
    Junior Member
    Join Date: Apr 2012
    Old 04-21-2012 , 06:21   Doesn't work with Alien Swarm
    Reply With Quote #10

    This plugin doesn't work with Alien Swarm dedicated server for me. Please, let me know if you had luck to make it work.
    DIMEDROLL 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:57.


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