OnPlayerText
#8

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
    new chat[200], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(chat, sizeof(chat), "%s (%d): {009900}%s", name, playerid, text);
    SendClientMessageToAll(0xFFFFFFFF, string);
    return 0;
}
You're lucky I was just helping someone else with the same function, so that's why you got a quick reply :P.

Explanation:

The {009900} is a HEX code for dark green, that's how you use color embedding in your script. Check this site for a HTML Color Picker: http://www.w3schools.com/tags/ref_colorpicker.asp, and check this part of the wiki for a color embedding tutorial: https://sampwiki.blast.hk/wiki/Colour_Em...olor_embedding.
this my script =( next time give me credit :P
Reply


Messages In This Thread
OnPlayerText - by Aleksabre - 16.10.2013, 21:17
Re: OnPlayerText - by DanishHaq - 16.10.2013, 21:19
Re: OnPlayerText - by xVIP3Rx - 16.10.2013, 21:19
Re: OnPlayerText - by Aleksabre - 16.10.2013, 21:22
Re: OnPlayerText - by Patrick - 16.10.2013, 21:24
Re: OnPlayerText - by Aleksabre - 16.10.2013, 21:26
Re: OnPlayerText - by DanishHaq - 16.10.2013, 21:27
Re: OnPlayerText - by Another1 - 16.10.2013, 22:20
Re: OnPlayerText - by DanishHaq - 16.10.2013, 22:53
Re: OnPlayerText - by Another1 - 16.10.2013, 23:20

Forum Jump:


Users browsing this thread: 1 Guest(s)