Help with RP chat
#9

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:
Код:
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;
}
There's no SendMessageToAll, but when i type something, same message sends to all players.
Reply


Messages In This Thread
Help with RP chat - by Ziyan - 12.06.2013, 13:35
Re: Help with RP chat - by feartonyb - 12.06.2013, 13:41
Re: Help with RP chat - by Ziyan - 12.06.2013, 14:17
Re: Help with RP chat - by feartonyb - 12.06.2013, 16:57
Re: Help with RP chat - by Ziyan - 12.06.2013, 19:17
Re: Help with RP chat - by feartonyb - 13.06.2013, 12:07
Re: Help with RP chat - by Ziyan - 13.06.2013, 23:33
Re: Help with RP chat - by IceBilizard - 14.06.2013, 06:25
Re: Help with RP chat - by Ziyan - 18.06.2013, 05:00
Re: Help with RP chat - by Ziyan - 18.06.2013, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)