19.07.2011, 20:58
PHP код:
public OnPlayerText(playerid, text[])
{
if(strlen(text) >= 64)
{
new str[128], n[24], sStr[128];
GetPlayerName(playerid, n, sizeof n);
strmid(sStr, text, 64, strlen(text));
strdel(text, 64, strlen(text));
format(str, sizeof str, "%s: %s ...", n, text);
SendClientMessageToAll(0xFFFFFFFF, str);
format(str, sizeof str, "... %s", sStr);
SendClientMessageToAll(0xFFFFFFFF, str);
return 0;
}
return 1;
}