18.06.2013, 05:00
I've removed all fs, and there's still message which everyone can see (regardless of distance). I don't want that SendMessageToAll, here is my code:
There's no SendMessageToAll, but when i type something, same message sends to all players.
Код:
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); ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); } return 1; }