29.06.2014, 07:31
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strcmp(PlayerInfo[playerid][LastTextSaid], text, true))
{
SendClientMessage(playerid, COLOR_RED, "YOU CANNOT SEND DUPLICATE MESSAGES");
return 0;
}
else
{
SetPlayerChatBubble(playerid, text,COLOR_WHITE,30,10000);
format(PlayerInfo[playerid][LastTextSaid], 128, text);
SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[playerid][LastTextSaid]);
return 0;
}
}