15.01.2020, 05:38
pawn Code:
SendClientMessageEx(playerid, color, const text[])
{
#define LENGHT (36)
if(strlen(text) > LENGHT)
{
new firstString[LENGHT], secondString[LENGHT];
strmid(firstString, text, 0, LENGHT);
strmid(secondString, text, LENGHT - 1, LENGHT * 2);
format(firstString, LENGHT, "%s", firstString);
format(secondString, LENGHT, "..%s", secondString);
SendClientMessage(playerid, color, firstString);
SendClientMessage(playerid, color, secondString);
}
else SendClientMessage(playerid, color, text);
#undef LENGHT
return 1;
}