SA-MP Forums Archive
remove chat with Pawn.RakNet - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: remove chat with Pawn.RakNet (/showthread.php?tid=662448)



remove chat with Pawn.RakNet - Corin - 01.01.2019

Hello, guys, a few months ago I found a post that was supposed to remove the chat using Pawn.RakNet and when I went looking for it today I did not find it but, can someone help me?

Complement: I know nothing about Pawn.RakNet


Re: remove chat with Pawn.RakNet - Corin - 02.01.2019

Quote:
Originally Posted by ******
Посмотреть сообщение
You don't need Pawn.RakNet, just return 0 in OnPlayerText.
It does not work, only the message sent by the player is not displayed, but SendClientMessage and SendClientMessageToAll are still displayed.

****** I was talking to my friend and he sent me the code I was searching for

Код:
public OnOutcomingRPC(playerid, rpcid, BitStream:bs)
{
    if(rpcid == 93) 
    {
		if(IsSpawn[playerid] == 0) // replace with your login variable or function
		{
			new dMessageLength;

			BS_IgnoreBits(bs, 32);
			BS_ReadValue(bs,PR_UINT32,dMessageLength);

			if(dMessageLength > 1)
				return 0;
		}
	}
	return 1;
}