Little Help
#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


Messages In This Thread
Little Help - by [LSB]TheGame - 03.04.2010, 21:07
Re: Little Help - by bauer123 - 03.04.2010, 21:15
Re: Little Help - by [LSB]TheGame - 03.04.2010, 21:35
Re: Little Help - by bauer123 - 03.04.2010, 21:36
Re: Little Help - by woot - 03.04.2010, 21:42
Re: Little Help - by [LSB]TheGame - 03.04.2010, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)