SA-MP Forums Archive
Little Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little Help (/showthread.php?tid=139020)



Little Help - [LSB]TheGame - 03.04.2010

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


Re: Little Help - bauer123 - 03.04.2010

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



Re: Little Help - [LSB]TheGame - 03.04.2010

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

its showing mask and normal "T" chat


Re: Little Help - bauer123 - 03.04.2010

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


Re: Little Help - woot - 03.04.2010

return 0 after the ProxDetector.


Re: Little Help - [LSB]TheGame - 03.04.2010

thanks g