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