[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
#2

@edit

qual a var das orgs?
Reply
#3

Vlw Mano Eu Sou Iniciante Mesmo KKK Aprendendo Ainda Por Enquanto so Sei

setplayerhealt : seta A Vida do player
setvehiclehealt : seta A Vida do carro
giveplayerid : da a Coisa Para Outro Player

Essas Coisa

e criar org colocar restriзao
E Mei Dificil ...

Mas To Aprendendo
Reply
#4

Quote:
Originally Posted by gabrielloko157
Посмотреть сообщение
Vlw Mano Eu Sou Iniciante Mesmo KKK Aprendendo Ainda Por Enquanto so Sei

setplayerhealteta A Vida do player
setvehiclehealteta A Vida do carro
giveplayerid:da a Coisa Para Outro Player

Essas Coisa

e criar org colocar restriзao
E Mei Dificil ...

Mas To Aprendendo
ai fica dificil pq eu tenho que saber qual a variavel que retorna o nome da org

@off
nгo sei pq colocam strtok dentro do comando
Reply
#5

Consegue Alterar de Strtok Para Outro tipo ?


desculpa Pelo Incomodo e que eu nao sei mesmo onde muda ....


Se Ajudar Eu Uso O GM Brasil Play Street Mais Eu Coloquei Muita Coisa Nele Tirei Varias Que Acho Que Nao Precisa Num Gm RPG ...

Reply
#6

Seria Algun Desses ??

stock NomeORG(playerid)
{
new gangtext[64];
if(PlayerInfo[playerid][pMembro] == 0 && PlayerInfo[playerid][pLider] == 0) { gangtext = "Civil"; }
else if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1) { gangtext = "Polнcia Militar"; }
else if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2) { gangtext = "B.O.P.E"; }
else if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3) { gangtext = "Exercito"; }
else if(PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4) { gangtext = "S.A.M.U"; }
else if(PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5) { gangtext = "Los Aztecas"; }
else if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6) { gangtext = "Hamas"; }
else if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7) { gangtext = "Servidor Pъblico"; }
else if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == { gangtext = "Hitmans"; }
else if(PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9) { gangtext = "Repуrter"; }
else if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10) { gangtext = "Taxista"; }
else if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11) { gangtext = "Policia Federal"; }
else if(PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12) { gangtext = "Cosa Nostra"; }
else if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13) { gangtext = "Yakuza"; }
else if(PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14) { gangtext = "Groove Street"; }
else if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) { gangtext = "Al'qaeda"; }
else if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16) { gangtext = "Policia Civil"; }
else if(PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17) { gangtext = "Ballas"; }
else if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 1 { gangtext = "Los Vagos"; }
else if(PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19) { gangtext = "Bloodz"; }
else if(PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20) { gangtext = "Sons of Anarchy"; }
else if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21) { gangtext = "Drifters"; }
else if(PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22) { gangtext = "Triads"; }
else if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23) { gangtext = "F.A.R.C"; }








forward IsAGOV(playerid);
forward IsAGOVCar(carid);
forward IsABOPEs(playerid);
forward IsABOPEsCar(carid);
forward IsAEx(playerid);
forward IsAExCar(carid);
forward IsAJornal(playerid);
forward IsAJornalCar(carid);
forward IsAHit(playerid);
forward IsAHitCar(carid);
forward IsABikeCar(carid);
forward IsAHamas(playerid);
forward IsAHamasCar(carid);
forward IsASonsofAnarchy(playerid);
forward IsASonsofAnarchyCar(carid);
forward IsATriad(playerid);
forward IsATriadCar(carid);
forward IsAYa(playerid);
forward IsAYaCar(carid);
forward IsAOni(playerid);
forward IsAOniCar(carid);
forward IsATaxi(playerid);
forward IsATaxiCar(carid);
forward IsATaxiCar2(carid);
forward gasolina(playerid);
forward IsAVagos(playerid);
forward IsAVagosCar(carid);
forward IsABallas(playerid);
forward IsABallasCar(carid);



forward IsAnAmbulanceCar(carid);
forward IsAAmbu(playerid);
forward IsAGOV(playerid);
forward IsAGatev(carid);
forward IsACopCar(carid);
forward IsArma(playerid);
forward IsAEnforcerCar(carid);
forward IsACaminhaozinhoCar(carid);
forward IsAMecCar(carid);
forward IsAMecCar2(carid);
forward IsAMec(playerid);
forward IsAPFCar(carid);
forward IsACosaNostraCar(carid);
forward IsAGOVCar(carid);
forward IsACosaNostra(playerid);


forward IsAClow(playerid);
forward IsAClowCar(carid);




public IsAAmbu(playerid)
{
if(IsPlayerConnected(playerid))
{
new lider = PlayerInfo[playerid][pLider];
new member = PlayerInfo[playerid][pMembro];
if(member==4 || member==4)
{
return true;
}
else if(lider==4 || lider==4)
{
return true;
}
}
return 0;
}
public IsAnAmbulanceCar(carid)
{
if((carid >= 69) && (carid <= 75))
{
return true;
}
return 0;
}

public IsAGatev(carid)
{
if((carid == 0) || (carid == 0) || (carid == 0) || (carid == 0))
{
return true;
}
return 0;
}




Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)