25.08.2012, 00:11
Hey, I've made a piece of code to change my admins text to a different color, but when they type long sentences (Run on to the next line) it turns back to the default text color, did I do something wrong??
Example:
Example:
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new output[256];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(str, sizeof(str), "%s(%i)", PlayerName, playerid);
format(output, sizeof(output),"{A8DBFF}%s", text);
SetPlayerName(playerid, str);
SendPlayerMessageToAll(playerid, output);
#if defined IRC
format(str, sizeof(str), "0,1[ADMIN]%s(%i)1,0:2 %s", PlayerName, playerid, output);
IRC_GroupSay(ircGroup, IRC_CHANNEL, output);
#endif
session[messages] = session[messages] + 1;
SetPlayerName(playerid, PlayerName);
return 0;
}