Thread: [API Scripting Help] zp_color inc
View Single Post
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-13-2011 , 04:05   Re: zp_color inc
Reply With Quote #2

PHP Code:
#include <zp50_colorchat> 
All players:
PHP Code:
zp_colored_print(0"%L"LANG_PLAYER"MENU_SAVE_MONEY"iVariable
Specific Player:
PHP Code:
zp_colored_print(player"%L"player"MENU_SAVE_MONEY"iVariable
It's better to have the %d this way.

PHP Code:
^x04 %d^x01 
instead of having the green close to %d. It's more safer. I had problems with it if I stick the ^x04 together with %d.

Extra info:
  • Player's index - Uses the specific player's chosen language
  • LANG_PLAYER - Uses player's chosen language
  • LANG_SERVER - Uses server's main language
  • If you have special characters in the language file, make sure you save it as UTF-8 without BOM

To save text encoding to "UTF-8 without BOM", download & install Notepad++. Open the text document & click on Encoding on the toolbar and click "UTF-8 without BOM"

Last edited by Excalibur.007; 12-13-2011 at 04:19.
Excalibur.007 is offline