02.12.2012, 06:28 
	
	
	
		Hello, Everyone i has problem
Ex:
When i chat original all player can see that text every where
and when i use that code
See this 

line 1 Original text
line 2 realchat ProxDetector 20.0
I need turnoff line 1 how to make it
sorry my English skill not good.
and sorry if this topic wrong section. Thankyou
	
	
	
Ex:
When i chat original all player can see that text every where
and when i use that code
Код:
new realchat = 1;
public OnPlayerText(playerid, text[])
{
    new sendername[MAX_PLAYER_NAME];
    new string[256];
    if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
      	new idx;
        new length = strlen(text);
		while ((idx < length) && (text[idx] <= ' '))
		{
			idx++;
		}
		new offset = idx;
		new result[256];
		while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
		{
			result[idx - offset] = text[idx];
			idx++;
		}
		result[idx - offset] = EOS;
      	        new bbs[MAX_STRING];
                format(bbs, sizeof(bbs), "'' %s ''", text);
		SetPlayerChatBubble(playerid,bbs, 0xFF436FFF, 20.0, 10000);
		GetPlayerName(playerid, sendername, sizeof(sendername));
  		format(string, sizeof(string), "%s: %s", sendername, text);
		ProxDetector(20.0, playerid, string, COLOR_GRAD5, COLOR_GRAD5, COLOR_GRAD5, COLOR_GRAD5, COLOR_GRAD5);
		if(!IsPlayerInAnyVehicle(playerid))	ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
		return 1;
  	}
	return 1;
}

line 1 Original text
line 2 realchat ProxDetector 20.0
I need turnoff line 1 how to make it
sorry my English skill not good.
and sorry if this topic wrong section. Thankyou


