08.07.2012, 12:14
Hey there, try this one.
pawn Code:
public OnPlayerText(playerid, text[])
{
if(strlen(text) > 64)
{
new str_one[64], str_two[64];
strmid(str_two, text, 64, 128);
strmid(str_one, text, 0, 64);
format(str_one, 64, "%s says: %s", GetName(playerid), str_one);
format(str_two, 64, "%s says: %s", GetName(playerid), str_two);
ProxDetector(30.0, playerid, str_one, -1);
ProxDetector(30.0, playerid, str_two, -1);
}
else
{
format(str_one, 64, "%s says: %s", GetName(playerid), text);
ProxDetector(30.0, playerid, str_one, -1);
}
return 1;
}