PDA

View Full Version : Help Text In Server


DuongNghia
24/07/2014, 06:38 AM
Can someone teach me how make the Text in server ???
https://lh6.******usercontent.com/-JNWkK8pMH-A/U9Cwmw6S52I/AAAAAAAAAqM/mWxq-4z9YQg/s1024/upanh.ug-rp.vn-sa-mp-001.png

nmader
24/07/2014, 08:48 AM
Use this:
SendClientMessage(playerid, color, "The string you want"); //playerid is the id of the person you want to send the text to. Color is the color you want it in an RGBA format. And the string is what you want to show.
To send text to everyone on a server use:
SendClientMessageToAll(color, "Your string");

Some things I suggest you looking into are:
Defines (for colors and such quicker)
Formatting strings (To add dynamic messages, like "Hello Jeff" if the players name is Jeff, or Greg for Greg.
Basic SA:MP scripting functions

If you have any more questions post in here! :cool:


EDIT: Didn't see the image until i posted this post. Use SetObectMaterialText http://wiki.sa-mp.com/wiki/SetObjectMaterialText