White text OnPlayerText - + rep.
#6

It doesn't need all the above when there is a function that returns the name with the color.
SendPlayerMessageToAll
Quote:
Originally Posted by SA:MP Wiki
This function can be used to send a message from a player to everyone else player. The line will start with the sender's name in his color, followed by the message in white.
pawn Код:
public OnPlayerText(playerid, text[])
{
    new output[128];
    format(output, sizeof(output), "%s", text);
    SendPlayerMessageToAll(playerid, output);
    return 0;
}
Reply


Messages In This Thread
White text OnPlayerText - + rep. - by Lynet - 22.12.2012, 08:20
Re: White text OnPlayerText - + rep. - by Lynet - 22.12.2012, 08:59
Re: White text OnPlayerText - + rep. - by park4bmx - 22.12.2012, 09:22
Re: White text OnPlayerText - + rep. - by Lordzy - 22.12.2012, 09:34
Re: White text OnPlayerText - + rep. - by Lynet - 22.12.2012, 09:40
Re: White text OnPlayerText - + rep. - by Konstantinos - 22.12.2012, 09:40
Re: White text OnPlayerText - + rep. - by Lynet - 22.12.2012, 09:46
Re: White text OnPlayerText - + rep. - by Konstantinos - 22.12.2012, 09:50
Re: White text OnPlayerText - + rep. - by Lynet - 22.12.2012, 09:55
Re: White text OnPlayerText - + rep. - by Lordzy - 22.12.2012, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)