remove chat with Pawn.RakNet
#1

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
Reply
#2

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)