I've ******'d it since I'm wondering too.
Here is what I've found:
pawn Код:
new string[2][160];
if(strlen([PARAMETER VARIABLE] > 127)
{
strins(string[1], ,[PARAMETER VARIABLE], 128);
strdel([PARAMETER VARIABLE], 128, sizeof(PARAMETER VARIABLE));
new Pname[24];
GetPlayerName(playerid, Pname, 24);
format(string[0], sizeof(string[0]), "%s(%d):%s", Pname, playerid, [PARAMETER VARIABLE]);
format(string[1], sizeof(string[1]), "%s(%d):%s", Pname, playerid, string[1]);
SendClientMessage(playerid, 0xFFFFFF, string[0]);
SendClientMessage(playerid, 0xFFFFFF, string[1]);
}
pawn Код:
SendCustomPlayerMessage(playerid, color, text[])
{
if(strlen(text) > 64)
{
new text1[65],
text2[65];
strmid(text2, text, 64, 128);
strmid(text1, text, 0, 64);
format(string, 128, "%s...", text1);
SendClientMessage(playerid, color, string);
format(string, 128, "...%s", text2);
SendClientMessage(playerid, color, string);
}
else SendClientMessage(playerid, color, text);
}
Untested, copied.
Credits to the creators.
Check them and tell me afterwards if it worked.