25.06.2013, 13:32
Well, I am currently writing this right NOW, so I don't know if it works, but try it(add the piece of code inside the function OnPlayerText):
pawn Код:
public OnPlayerText(playerid, text[])
{
new string1[54],string2[54],message[136];
if(strlen(text)<=108)
{
for(new i=0;i<strlen(text);i++)
{
if(i==55)
string1[i]='-';
if(i<54)
string1[i]=text[i];
else
string2[i]=text[i];
}
new pName[24];
GetPlayerName(playerid,pName,24);
format(message,sizeof(message),"%s(%d):%s\n%s",pName,playerid,string1,string2);
SendClientMessageToAll(COLOR_WHITE,message);
}
return 0;
}