Jump to content
  • 0

Question

Posted

Salut am o problema cand vorbesc playeri / administratori pe y nu mereu apare in chat....ma puteti ajuta?

	if(realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
      	if(PlayerToPoint(10.0, playerid, 1428.4536,-1466.1508,1616.3073))
		{
			SendClientMessage(playerid, COLOR_GRAD2, "You can't speack on TV !");
			return 1;
		}
      	new carid = GetPlayerVehicleID(playerid);
		GetPlayerName(playerid, sendername, sizeof(sendername));
		new namenew[2][20];
		split(sendername, namenew, '_');
		if(PlayerInfo[playerid][pMaskOn] == 1)
		{
		    format(string, sizeof(string), "{F5F5F5}Necunoscut says: {F5F5F5}%s", text);
			SetPlayerChatBubble(playerid, text, COLOR_GREEN, 20.0, 10000);
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5,carid,windowcar[carid]);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(BigEar[i] == 1)
				{
				    format(string, sizeof(string), "{F5F5F5}[%d]Necunoscut says: {F5F5F5}%s", playerid, text);
				    SendClientMessage(i,0xFFFFFFFF,string);
				}
			}
			if(gogogos[playerid] == 0)
			{
				ApplyAnimation(playerid,"PED","IDLE_chat",4.1,0,1,1,1,1);
				bazar[playerid] = 5;
			}
		}
		else if(PlayerInfo[playerid][pMaskOn] == 0)
		{
		    format(string, sizeof(string), "%s %s[%d] says: {F5F5F5}%s", namenew[0], namenew[1],playerid, text);
			SetPlayerChatBubble(playerid, text, 0x10F441AA, 50.0, 10000);
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5,carid,windowcar[carid]);
			if(gogogos[playerid] == 0)
			{
				ApplyAnimation(playerid,"PED","IDLE_chat",4.1,0,1,1,1,1);
				bazar[playerid] = 5;
			}
		}
		return 0;
	}
	return 1;
}

Vrei ceva? [email protected]

1 answer to this question

Recommended Posts

Posted

Uite unul bun :

[pawn]  if (realchat)

{

    if(gPlayerLogged[playerid] == 0)

    {

        return 0;

      }

      if(PlayerInfo[playerid][pAdmin] >= 0)

        {

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, sizeof(string), "%s spune: %s", sendername, text);

    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);

}

// ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);

return 0;

}[/pawn]

//Daca doresti sa pastrezi chestia cu maskon .. integreazo in asta si app vezi ca ai uitat sa inchizi  "}" aici:

[pawn]if(realchat)

{

    if(gPlayerLogged[playerid] == 0)

    {

        return 0;

      }[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.