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

[ANY] Simple Welcome Message 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 07-06-2011 , 09:46   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #71

Quote:
Originally Posted by fatih54 View Post
Whats smx, amx?, it should sma, amxx?
.... this is the sourcemod section
napalm00 is offline
Sunshisoo
Junior Member
Join Date: Jun 2011
Location: Palau
Old 07-09-2011 , 19:03   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #72

Resolved
Sunshisoo is offline
Excel Gamers
Member
Join Date: Jul 2011
Old 08-11-2011 , 00:42   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #73

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
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 08-11-2011 , 05:03   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #74

you can change message in translation file
but why you want to bother admins to send those messages?
__________________
Zuko is offline
Send a message via ICQ to Zuko
HALK
New Member
Join Date: Jun 2011
Old 08-22-2011 , 04:51   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #75

Hi Zuko!

Using your plugin, but have 1 trouble with Russian language.
When I write messages to PanelLines there is a bug, not all masseges displaying correctly. Translation file saved into UTF8 without BOM.

On screen below you'll see that message not ended, and ther no ClosePanel button.

p.S. Sorry for bad english.
Attached Thumbnails
Click image for larger version

Name:	plugin.JPG
Views:	373
Size:	65.5 KB
ID:	91089  
HALK is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 11-30-2011 , 12:43   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #76

Is it possible to add a second for the welcome messages.

I like to use the panel to show the server rules then wait about 20 secs to show the available commands in the chat area...
moxie2020 is offline
danielmyst777
AlliedModders Donor
Join Date: Aug 2010
Location: Virginia
Old 12-01-2011 , 00:22   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #77

I am getting this error in my SM logs:
Code:
L 12/01/2011 - 00:05:10: [SM] Plugin encountered error 22: Maximum number of parameters reached
L 12/01/2011 - 00:05:10: [SM] Native "VFormat" reported: Translation string formatted incorrectly - missing at least 1 parameters
L 12/01/2011 - 00:05:10: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 12/01/2011 - 00:05:10: [SM]   [0]  Line 61, D:\Documents and Settings\Zuko\Pulpit\Compilator\include\colors.inc::CPrintToChat()
L 12/01/2011 - 00:05:10: [SM]   [1]  Line 127, D:\Documents and Settings\Zuko\Pulpit\Compilator\simplewelcomemsg.sp::ChatMessagesDisplay()
L 12/01/2011 - 00:05:10: [SM]   [2]  Line 100, D:\Documents and Settings\Zuko\Pulpit\Compilator\simplewelcomemsg.sp::Timer_Welcome()
Here's my translation file:
Code:
"Phrases"
{
    //Chat Messages
    //Color list: http://forums.alliedmods.net/showthread.php?t=96831
    "WelcomeMsg1"
    {
        "#format"    "{1:N}"
        "en"        "{green}Welcome to paradise {olive}{1}! {lightgreen}Good luck and have fun!"
    }
    
    //Panel Messages
    "PanelTitle"
    {
        "en"        "Welcome!"
        "pl"        "Witaj!"
    }
    
    "PanelClose"
    {
        "en"        "0. Close"
        "pl"        "0. Zamknij"
    }
    
    "PanelLine1"
    {
        "en"        "Welcome on our server! GL&HF!"
        "pl"        "Witaj na naszym serwerze! GL&HF!"
    }
    
    "PanelLine2"
    {
        "en"        "Example Line 2"
        "pl"        "Przykładowa Linia 2"
    }
    
    "PanelLine3"
    {
        "en"        "Example Line 3"
        "pl"        "Przykładowa Linia 3"
    }
    
    "PanelLine4"
    {
        "en"        "Example Line 4"
        "pl"        "Przykładowa Linia 4"
    }
    
    "PanelLine5"
    {
        "en"        "Example Line 5"
        "pl"        "Przykładowa Linia 5"
    }
    
    "PanelLine6"
    {
        "en"        "Example Line 6"
        "pl"        "Przykładowa Linia 6"
    }
    
    "PanelLine7"
    {
        "en"        "Example Line 7"
        "pl"        "Przykładowa Linia 7"
    }
    
    "PanelLine8"
    {
        "en"        "Example Line 8"
        "pl"        "Przykładowa Linia 8"
    }
    
    "PanelLine9"
    {
        "en"        "Example Line 9"
        "pl"        "Przykładowa Linia 9"
    }
    
    "PanelLine10"
    {
        "en"        "Example Line 10"
        "pl"        "Przykładowa Linia 10"
    }
    
    "PanelLine11"
    {
        "en"        "Example Line 11"
        "pl"        "Przykładowa Linia 11"
    }
    
    "PanelLine12"
    {
        "en"        "Example Line 12"
        "pl"        "Przykładowa Linia 12"
    }
    
    "PanelLine13"
    {
        "en"        "Example Line 13"
        "pl"        "Przykładowa Linia 13"
    }
    
    "PanelLine14"
    {
        "en"        "Example Line 14"
        "pl"        "Przykładowa Linia 14"
    }
    
    "PanelLine15"
    {
        "en"        "Example Line 15"
        "pl"        "Przykładowa Linia 15"
    }
    
    "PanelLine16"
    {
        "en"        "Example Line 16"
        "pl"        "Przykładowa Linia 16"
    }
    //Hint Message
    "HintMessage"
    {
        "en"        "Welcome on our server! GL and HF!"
        "pl"        "Witaj na naszym serwerze! GL and HF!"
    }
    
    //Mod Detection
    "Insurgency"
    {
        "en"        "Set the maximum number of lines for Insurgency mod."
        "pl"        "Ustawiono maksymalną liczbę linii dla Insurgency."
    }
    
    "L4D"
    {
        "en"        "Set the maximum number of lines for Left 4 Dead."
        "pl"        "Ustawiono maksymalną liczbę linii dla Left 4 Dead."
    }
        
    "Other"
    {
        "en"        "Set the maximum number of lines of."
        "pl"        "Ustawiono maksymalną liczbę linii."
    }
}
AND my .cfg file:
Code:
// This file was auto-generated by SourceMod (v1.5.0-dev)
// ConVars for plugin "simplewelcomemsg.smx"


// Enable/Disable Plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_swm_enable "1"

// How many lines plugin should display.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "7.000000"
sm_swm_messagelines "1"

// Sets Message Type: 1 - Chat , 2 - Panel , 4 - Hint (You can combine more than one)
// -
// Default: "7"
// Minimum: "0.000000"
// Maximum: "7.000000"
sm_swm_msgtype "5"

// How many lines plugin should display in panels.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "13.000000"
sm_swm_panellines "0"

// When the message should be displayed after the player join on the server (in seconds)
// -
// Default: "25.0"
sm_swm_timer "35.0"
Is this a plug-in error or configuration error on my part of either the .cfg or translation file? Thanks.

SM 1.5 Dev Windows
__________________

Last edited by danielmyst777; 12-01-2011 at 00:27.
danielmyst777 is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 12-01-2011 , 04:28   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #78

Man.

The ...phrases.txt file must be in the cstrike/addons/sourcemod/translations folder.
blue zebra is offline
Riosha
Member
Join Date: Oct 2011
Location: Russia, Kemerovo
Old 12-23-2011 , 02:40   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #79

How could I set translation of lines?

For example:

"WelcomeMsg3"
{
"en" "{blue}Our rules:"
"ru" "{blue}Правила сервера:"
}

When russian players enter my server, they still see message in english.
Riosha is offline
Send a message via ICQ to Riosha Send a message via MSN to Riosha Send a message via Skype™ to Riosha
januto
Member
Join Date: Mar 2011
Old 12-23-2011 , 18:00   Re: [ANY] Simple Welcome Message 1.2
Reply With Quote #80

Doesn't work colours for L4d2, what a pity..

EDIT: It works but there's some error logs: Altought it may work fine:

Quote:
L 12/24/2011 - 01:05:26: SourceMod error session started
L 12/24/2011 - 01:05:26: Info (map "c1m1_hotel") (file "errors_20111224.log")
L 12/24/2011 - 01:05:26: [SM] Native "PrintHintText" reported: Client 5 is not in game
L 12/24/2011 - 01:05:26: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 12/24/2011 - 01:05:26: [SM] [0] Line 534, simplewelcomemsg.sp::HintMessageDisplay()
L 12/24/2011 - 01:05:26: [SM] [1] Line 104, simplewelcomemsg.sp::Timer_Welcome()
L 12/24/2011 - 01:10:02: [SM] Native "PrintHintText" reported: Client 2 is not in game
L 12/24/2011 - 01:10:02: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 12/24/2011 - 01:10:02: [SM] [0] Line 534, simplewelcomemsg.sp::HintMessageDisplay()
L 12/24/2011 - 01:10:02: [SM] [1] Line 104, simplewelcomemsg.sp::Timer_Welcome()
L 12/24/2011 - 01:11:05: [SM] Native "PrintHintText" reported: Client 2 is not in game
L 12/24/2011 - 01:11:05: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 12/24/2011 - 01:11:05: [SM] [0] Line 534, simplewelcomemsg.sp::HintMessageDisplay()
L 12/24/2011 - 01:11:05: [SM] [1] Line 104, simplewelcomemsg.sp::Timer_Welcome()
L 12/24/2011 - 01:18:08: Error log file session closed.
L 12/24/2011 - 01:18:50: SourceMod error session started
L 12/24/2011 - 01:18:50: Info (map "c8m1_apartment") (file "errors_20111224.log")
L 12/24/2011 - 01:18:50: [SM] Native "PrintHintText" reported: Client 4 is not in game
L 12/24/2011 - 01:18:50: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 12/24/2011 - 01:18:50: [SM] [0] Line 534, simplewelcomemsg.sp::HintMessageDisplay()
L 12/24/2011 - 01:18:50: [SM] [1] Line 104, simplewelcomemsg.sp::Timer_Welcome()
L 12/24/2011 - 01:40:47: [SM] Native "PrintHintText" reported: Client 7 is not in game
L 12/24/2011 - 01:40:47: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 12/24/2011 - 01:40:47: [SM] [0] Line 534, simplewelcomemsg.sp::HintMessageDisplay()
L 12/24/2011 - 01:40:47: [SM] [1] Line 104, simplewelcomemsg.sp::Timer_Welcome()
L 12/24/2011 - 01:59:40: [SM] Native "PrintHintText" reported: Client 5 is not in game
L 12/24/2011 - 01:59:40: [SM] Displaying call stack trace for plugin "simplewelcomemsg.smx":
L 12/24/2011 - 01:59:40: [SM] [0] Line 534, simplewelcomemsg.sp::HintMessageDisplay()
L 12/24/2011 - 01:59:40: [SM] [1] Line 104, simplewelcomemsg.sp::Timer_Welcome()
L 12/24/2011 - 02:29:09: Error log file session closed.
EDIT: It works fine with this update: (it's NOT uploaded on the first page):https://forums.alliedmods.net/showpo...3&postcount=23
__________________
You are welcome!


Last edited by januto; 12-24-2011 at 08:42. Reason: Update 2
januto 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 20:47.


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