[Ajuda]Chat de Comunicaзao entre Lideres e Sub Lideres
#1

Estou Com Este Codigo De Chat de Comunicaзao entre lideres e sub lideres

Queria Saber Se Tem Como Colocar para Aparecer Tipo

se ele e Lider Aparece:Lider Nome Da Org : e o que ele fala
e se ele for Sub-Lider Aparece:Sub-Lider Nome da org: o que ele fala


o Comando й /LChat Ou /Liderchat

Codigo:

Код:
	if(strcmp(cmd, "/Lchat", true) == 0 || strcmp(cmd, "/liderchat", true) == 0)
	{
		if(PlayerInfo[playerid][pMuted] == 1)
		{
			SendClientMessage(playerid, COLOR_YELLOW, "Vocк nгo pode falar, pois foi calado");
			return true;
		}
	    if(IsPlayerConnected(playerid))
	    {
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_YELLOW, "USE: /lchat [ Digite ]");
				return true;
			}
			if(TentouDivulgar(result))
			{
  				if(cdivulgar[playerid] >= 4)
  				{
					SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
    				SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
    				SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
    				PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
    				Kick(playerid);
  				}
  				GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
  				format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
				ABroadCast(COLOR_YELLOW,string,1);
				DivulgouLog(string);
        		cdivulgar[playerid] += 1;
        		return true;
			}
			if (PlayerInfo[playerid][pCargo] >= 5 || PlayerInfo[playerid][pCargo] >= 6)
			{
				format(string, sizeof(string), "*%d : Chat de lideres%s: %s", PlayerInfo[playerid][pCargo], PlayerName(playerid), result);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
			format(string, sizeof(string), "[%d/%d/%d] [%d:%d:%d] *%d : %s: %s", v[2], v[1], v[0], v[3], v[4], v[5] , PlayerInfo[playerid][pCargo], sendername, result);
			liderchatLog(string);
		}
		return true;
	}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)