AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Lang Opcion... (https://forums.alliedmods.net/showthread.php?t=75597)

AntiBots 08-08-2008 18:10

Lang Opcion...
 
Hi friends, I am doing a plugin, I need help with dictionary.

Is posible to get the amx_lang off the client?

and if is: ES show X msg, and if is EN show another?

Because my plugin have only 1 or 2 Msg, And I dont want to do a lang :D ?

IneedHelp 08-08-2008 18:55

Re: Lang Opcion...
 
LANG_PLAYER ?

PHP Code:

client_print(idprint_chat"%L"LANG_PLAYER /*LANG_SERVER*/"SOME_THING"


Exolent[jNr] 08-08-2008 19:00

Re: Lang Opcion...
 
Do not use LANG_PLAYER. Instead, use the player index.
Only use LANG_PLAYER when using 0 as the player index.

IneedHelp 08-08-2008 19:58

Re: Lang Opcion...
 
Oh, is true, sorry about that, fixed:

PHP Code:

client_print(idprint_chat"%L",id"SOME_THING"


</span></span>

AntiBots 08-08-2008 21:15

Re: Lang Opcion...
 
This:

PHP Code:

ShowSyncHudMsg(0sync"%L"plr"MP_DISPLAY"time_s); 

Or This:

PHP Code:

ShowSyncHudMsg(0sync"%L"0"MP_DISPLAY"time_s); 

Only work with some Idioms.

Exolent[jNr] 08-08-2008 21:19

Re: Lang Opcion...
 
Quote:

Originally Posted by X-olent (Post 666700)
Only use LANG_PLAYER when using 0 as the player index.


AntiBots 08-08-2008 21:54

Re: Lang Opcion...
 
PHP Code:

ShowSyncHudMsg(0sync"%L"LANG_PLAYER"MP_DISPLAY"time_s); 

:D Thank


All times are GMT -4. The time now is 05:29.

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