Raised This Month: $ Target: $400
 0% 

[HOWTO] Make a colormessage MultiLangual


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-31-2009 , 06:10   [HOWTO] Make a colormessage MultiLangual
Reply With Quote #1

<FONT color=black>
PHP Code:
        case 1//Red
        
{
            
ColorChat(0RED"Say /cm to see the validable Commands to you!");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        } 
</SPAN>

How to make this multilangual?

I tried this:

PHP Code:
        case 1//Red
        
{
            
ColorChat(0RED"%L"LANG_PLAYER"MESSAGE");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        } 
</SPAN>

But i don't sure know that it works or not :/
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-31-2009 , 06:35   Re: [HOWTO] Make a colormessage MultiLangual
Reply With Quote #2

Take a look in gungame or any plugin which use ML + color.
Arkshine is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-31-2009 , 06:50   Re: [HOWTO] Make a colormessage MultiLangual
Reply With Quote #3

I looked, but the problem is that i don't know how to use it with random...

PHP Code:
new g_Barman[ ][ ] =
{
 
"msg1"
 "msg2"
 "msg3"
}; 
PHP Code:
public Barman_Says()
{
        if(
get_cvar_num("Say_Time") >= 1)
        {
 
                switch(
random_num(0,5))
                {
                        case 
1:
                        {
                                
ColorChat(0RED"%s"g_Barman);
                                
set_task(float(get_pcvar_num(Say_Time)), "Barman_Says");
                        }
                        case 
2:
                        {
                                
ColorChat(0BLUE"%s"g_Barman);
                                
set_task(float(get_pcvar_num(Say_Time)), "Barman_Says");
                        }
                        case 
3:
                        {
                                
ColorChat(0GREY"%s"g_Barman);
                                
set_task(float(get_pcvar_num(Say_Time)), "Barman_Says");
                        }
                        case 
4:
                        {
                                
ColorChat(0NORMAL"%s"g_Barman);
                                
set_task(float(get_pcvar_num(Say_Time)), "Barman_Says");
                        }
                        case 
5:
                        {
                                
ColorChat(0GREEN"%s"g_Barman);
                                
set_task(float(get_pcvar_num(Say_Time)), "Barman_Says");
                        }
                }
                return
        }

__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 03-31-2009 , 15:34   Re: [HOWTO] Make a colormessage MultiLangual
Reply With Quote #4

did you try something like this

PHP Code:
    new testmsg[256]
    
    
formatex(testmsg255"%L"LANG_PLAYER"TEST")
    
ColorChat(0REDtestmsg
__________________

Last edited by vato loco [GE-S]; 03-31-2009 at 15:46.
vato loco [GE-S] is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-31-2009 , 15:56   Re: [HOWTO] Make a colormessage MultiLangual
Reply With Quote #5

OFF: hihi ty crazy
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-31-2009 , 16:35   Re: [HOWTO] Make a colormessage MultiLangual
Reply With Quote #6

-->
Attached Files
File Type: sma Get Plugin or Get Source (kz_chatcolor.sma - 546 views - 11.6 KB)
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
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 02:25.


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