Little Help
#1

Ok i have a code and you use a different text

Its showing the mask text and the normal chat text

How i make so just mask text shows when you maskon = 1 and maskoff = 0 goes back to normal chat

Код:
public OnPlayerText(playerid, text[])
{

//MASK
if(PlayerData[playerid][pMaskuse] == 1)
			{
			  new string[256];
				format(string, sizeof(string), "ANONYMOUS Says: %s", text);
				ProxDetector(20.0, playerid, string,WHITE,WHITE,WHITE,WHITE,WHITE);
			}


	if(ServerInfo[Anticaps] == 1)
	{
  for(new i; i<strlen(text); i++)
  {
  if (text[i] > 64 && text[i] < 91) text[i] += 32;
  }
  }
  	if(PlayerData[playerid][Muted] == 1)
	{
 	SendClientMessage(playerid, RED, "SERVER MESSAGE: You are muted");
  	return 1;
	}
	if(PlayerData[playerid][dtaped] == 1)
	{
	SendClientMessage(playerid, RED, "Hoooly fuk homie, your taped up, you can't tlk!");
	return 0;
	}

  return true;
}
koo
Reply
#2

Quote:
Originally Posted by [LSB
TheGame ]
Ok i have a code and you use a different text

Its showing the mask text and the normal chat text

How i make so just mask text shows when you maskon = 1 and maskoff = 0 goes back to normal chat

Код:
public OnPlayerText(playerid, text[])
{

//MASK
if(PlayerData[playerid][pMaskuse] == 1)
			{
			  new string[256];
				format(string, sizeof(string), "ANONYMOUS Says: %s", text);
				ProxDetector(20.0, playerid, string,WHITE,WHITE,WHITE,WHITE,WHITE);
			}


	if(ServerInfo[Anticaps] == 1)
	{
  for(new i; i<strlen(text); i++)
  {
  if (text[i] > 64 && text[i] < 91) text[i] += 32;
  }
  }
  	if(PlayerData[playerid][Muted] == 1)
	{
 	SendClientMessage(playerid, RED, "SERVER MESSAGE: You are muted");
  	return 1;
	}
	if(PlayerData[playerid][dtaped] == 1)
	{
	SendClientMessage(playerid, RED, "Hoooly fuk homie, your taped up, you can't tlk!");
	return 0;
	}

  return true;
}
koo
uhm maybe
pawn Код:
public OnPlayerText(playerid, text[])
{

//MASK
else if(PlayerData[playerid][pMaskuse] == 0)
            {
              new string[256];
                format(string, 256, "%s Says:%s ", pname, cmdtext[5]);
                ProxDetector(20.0, playerid, string,WHITE,WHITE,WHITE,WHITE,WHITE);
            }
Or dunno i fail lol

EDIT:Oh umm maybe
pawn Код:
else if(PlayerData[playerid][pMaskuse] == 0)
            {
              new string[256];
                format(string, 256, "%s: %s ", pname, cmdtext[5]);
                ProxDetector(20.0, playerid, string,GetPlayerColor(playerid);
            }
Reply
#3

Just needs to disable normal chat and stick to the one chat (the mask one)

its showing mask and normal "T" chat
Reply
#4

Ow.
Sorry im not that good if its related to roleplay
Sorry
Reply
#5

return 0 after the ProxDetector.
Reply
#6

thanks g
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)