Raised This Month: $ Target: $400
 0% 

[help] putting ML to plugin FAIL!!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 05-21-2010 , 09:23   Re: [help] putting ML to plugin FAIL!!!!
Reply With Quote #1

You'll have to add the following line into plugin_init()

PHP Code:
register_dictionary("Your-ML-FileName-Here.txt"); 
And after that, you would have to create / move your ML file in addons/amxmodx/data/lang

If you want to print a ML text to a client, you can do like:

PHP Code:
client_print(0print_chat"%L"LANG_SERVER"ML-MESSAGE-VARIABLE"message arguments); // for printing to all clients in server language

client_print(0print_chat"%L"LANG_PLAYER"ML-MESSAGE-VARIABLE",  message arguments); // for printing to all clients in their own language 
PHP Code:
client_print(iClientprint_chat"%L"iClient"ML-MESSAGE-VARIABLE",  message arguments); // for printing to a single target in his own language 
__________________

Last edited by unnyquee; 05-21-2010 at 09:27.
unnyquee 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 03:32.


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