Raised This Month: $ Target: $400
 0% 

Multi language in plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CsIosefin
Senior Member
Join Date: Aug 2009
Old 09-25-2012 , 09:46   Multi language in plugin
Reply With Quote #1

Hello! I want sma contain two or more languages ​​through a set menu (this is not done multilingual.sma amxmodx plugin).
The difficulty we face is that they do not know how to set a cvar person (1 or 2 menu language).
Menu language:
Code:
public LANGUAGE(id, menu, item)
{
        storage[id] = item
	switch(item)
	{
		case 0:
		{
			client_cmd(id, "cvar_language 0")
		}
		case 1:
		{
			client_cmd(id, "cvar_language 1")
		}
	}
	return PLUGIN_CONTINUE
}
Function:
Code:
	switch(get_cvar_num("cvar_language"))
	{
		case 0:
		{
			client_print(0, print_chat, "[LANG1] %s: %s", name, message)
			return PLUGIN_HANDLED
		}
		case 1:
		{
			client_print(0, print_chat, "[LANG2] %s: %s", name, message)
			return PLUGIN_HANDLED
		}
	}
CsIosefin is offline
 



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 08:12.


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