[Ajuda] Bloq/Lib
#6

@F1N4L, Segue
Код:
new bool:BchatV1[MAX_PLAYERS];
Код:
CMD:onx(playerid) 
{
    BchatV1[playerid] = false;
	return 1;
}

CMD:offx(playerid) 

    BchatV1[playerid] = true;
	return 1;
}
Код:
if(text[0] == '@')
{


	if((V1[playerid][Mod] >= 1) || V2[playerid][Level] >= 2)
	{



		if(BchatV1[playerid] == false)
		{


			new string[256];
			format(string,sizeof(string)," ~ Chat: %s: %s",pName(playerid),text[1]);
			for(new I = 0; I < MAX_PLAYERS; I ++)
			{




				if(IsPlayerConnected(I))
				{




					if(IsPlayerAdmin(I) || V1[I][Mod] || V2[I][Level] >= 2) SendClientMessage(I, ~1, string);
				}
			}
		}
	}
	return 0;
}
Ao usar /offx ele bloqueia o @ [mensagem] nгo envia, porйm continua recebendo mensagens dos outros.
vejo que nгo й possнvel fazer o que desejo, certo?
Jб tentei colocar assim tbm:

Код:
if(IsPlayerAdmin(I) || Account[I][Mod] || Account[I][Level] >= 2 || BchatV1[I] == true) SendClientMessage(I, 0x63AFF00A, string);
Assim:
Код:
if(IsPlayerAdmin(I) || Account[I][Mod] || Account[I][Level] >= 2 || BchatV1[playerid] == true) SendClientMessage(I, 0x63AFF00A, string);
E continua recebendo as mensagens quando estб bloqueado.
Reply


Messages In This Thread
Bloq/Lib - by Dishz - 11.06.2016, 21:02
Re: Bloq/Lib - by pWesley - 12.06.2016, 00:23
Re: Bloq/Lib - by Dishz - 12.06.2016, 13:36
Re: Bloq/Lib - by Dishz - 13.06.2016, 17:43
Re: Bloq/Lib - by F1N4L - 13.06.2016, 17:50
Re: Bloq/Lib - by Dishz - 14.06.2016, 01:50
Re: Bloq/Lib - by Derritee1001 - 14.06.2016, 03:24
Re: Bloq/Lib - by Dishz - 14.06.2016, 03:36
Re: Bloq/Lib - by Derritee1001 - 14.06.2016, 03:47
Re: Bloq/Lib - by Dishz - 14.06.2016, 03:50

Forum Jump:


Users browsing this thread: 1 Guest(s)