14.06.2013, 06:25
pawn Код:
public OnPlayerText(playerid, text[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "You cannot speak, while you are silenced.");
return 0;
}
if (realchat)
{
if(gPlayerLogged[playerid] == 0)
{
return 0;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s says: %s", sendername, text);
SendClientMessageToAll(COLOR_WHITE, string);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
return 1;
}