Raised This Month: $ Target: $400
 0% 

Multilang menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pankiller6
Member
Join Date: May 2009
Old 02-17-2010 , 08:47   Multilang menu
Reply With Quote #1

Maybe is there plugin that when player connect he gets menu to choose langs : English or Lithuanian
Or maybe someone can create this
pankiller6 is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-17-2010 , 08:55   Re: Multilang menu
Reply With Quote #2

amx_langmenu
Seta00 is offline
pankiller6
Member
Join Date: May 2009
Old 02-17-2010 , 08:58   Re: Multilang menu
Reply With Quote #3

I dont want that everybody to go to console but automaticly drop menu to choose lang
pankiller6 is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-17-2010 , 09:10   Re: Multilang menu
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init() {
    
register_plugin("Auto Lang Menu""1.0""Seta00");
    
RegisterHam(Ham_Spawn"player""FwdPlayerSpawn"1);
}

public 
FwdPlayerSpawn(id) {
    
client_cmd(id"amx_langmenu");

Seta00 is offline
pankiller6
Member
Join Date: May 2009
Old 02-17-2010 , 09:22   Re: Multilang menu
Reply With Quote #5

Can you make menu like : Choose language you want?
1.Lithuania
2.English
3.Other - and then you would get Amx_langmenu
pankiller6 is offline
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 02-17-2010 , 13:44   Re: Multilang menu
Reply With Quote #6

Quote:
Originally Posted by Seta00 View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init() {
    
register_plugin("Auto Lang Menu""1.0""Seta00");
    
RegisterHam(Ham_Spawn"player""FwdPlayerSpawn"1);
}

public 
FwdPlayerSpawn(id) {
    
client_cmd(id"amx_langmenu");

lol, that will show menu each time when player will spawn.

P.S
OMG! Mr. Multilingual didn't replied to this thread
__________________

Last edited by fR4gn0tiX!; 02-17-2010 at 13:46.
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-17-2010 , 14:41   Re: Multilang menu
Reply With Quote #7

You can try this.

On first spawn, player is shown a menu of your selected languages, and then "Other" which will show amx_langmenu.
If you don't put any selected languages, amx_langmenu will be shown automatically.

Cvar:
amx_menu_langs "<lang>,..."
- The list of languages for the menu.
- This is the 2-letter language code (all can be found in addons/amxmodx/data/lang/languages.txt).
- Default: "en,lt"
- Examples:
--- "en,lt,de,fr"
--- "en"
--- "fr,ls,de"

Changes upon compiling:
PHP Code:
// put a "//" before the line to instantly show menu on spawn
#define SPAWN_WAIT_TIME 6.0

// put a "//" before the line below to always ask every first spawn
#define DONT_ASK_AGAIN 
Client Command:
say /lang
- Brings up the language menu.

Multilingual Translations:
http://forums.alliedmods.net/showthread.php?p=1093819
Attached Files
File Type: sma Get Plugin or Get Source (custom_lang_menu.sma - 1719 views - 4.8 KB)
File Type: txt custom_lang_menu.txt (785 Bytes, 669 views)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 02-19-2010 at 21:36.
Exolent[jNr] is offline
pankiller6
Member
Join Date: May 2009
Old 02-17-2010 , 15:04   Re: Multilang menu
Reply With Quote #8

In second code
compile error : undefined symbol "szLang"
pankiller6 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-17-2010 , 19:04   Re: Multilang menu
Reply With Quote #9

Fixed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
pankiller6
Member
Join Date: May 2009
Old 02-18-2010 , 07:17   Re: Multilang menu
Reply With Quote #10

can you make that menu would appear after 6 seconds
because in zombie plague when you spawn much menu appears and langmenu dissapears....
pankiller6 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 13:06.


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