14.06.2016, 01:50
@F1N4L, Segue
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:
Assim:
E continua recebendo as mensagens quando estб bloqueado.
Код:
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;
}
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);
Код:
if(IsPlayerAdmin(I) || Account[I][Mod] || Account[I][Level] >= 2 || BchatV1[playerid] == true) SendClientMessage(I, 0x63AFF00A, string);

