12.10.2014, 11:51
(
Последний раз редактировалось fall3n; 22.10.2014 в 14:06.
)
Highlight player names on chat
This is a simple filterscript which highlights online player names on chat if they're found, just like you see on Skype or IRC chats. This filterscript contains configuration which can be done to change the behavior of this filterscript.Screens
- List of players who are online.

- Chat style

Download
https://github.com/falle3n/Nick_High..._Chat/releases
Raw source : https://raw.githubusercontent.com/fa...pts/fNHLOC.pwn
Configuration (optional, only needed if you want to change the way how this filterscript works)
There's two defines called DEFAULT_HIGHLIGHT_COLOR and SHOW_ID_ONCHAT and both of them are defined by default. If you undefine the first one, the highlighting color will be according to the color of player. You can edit that define to highlight on your custom color, currently it's light blue. The second define means that if the player ID should be shown on chat. If you undefine it, the output of the chat will be like how it's on default SA-MP chat, however player name on chat will be highlighted if found.
(optional notes)
NOTE : This filterscript can run with or without foreach. You can comment out foreach include line if you don't want to use foreach however I prefer using it.
NOTE2 : If you want to build your custom text system using this highlight, comment out SHOW_ID_ONCHAT and get to line near 123. There you can see a function named SendPlayerMessageToAll, remove it out. And then instead of using text parameter, use string array.