20.06.2009, 16:11
I prefer to have this script:
That way the player can have 2 lines of text without it getting cut off AND the text is white while keeping the player name it's normal color.
Ex:
pawn Код:
public OnPlayerText(playerid,text[])
{
new string[2][MAX_PLAYER_NAME];
GetPlayerName(playerid,string[0],sizeof(string[]));
GetPlayerName(playerid,string[1],sizeof(string[]));
format(string[0],sizeof(string[]),"[%d]%s",playerid,string[0]);
SetPlayerName(playerid,string[0]);
SendPlayerMessageToAll(playerid,text);
SetPlayerName(playerid,string[1]);
return 0;
}
Ex: