Код:
public OnPlayerText(playerid, text[])
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(chat[i] == 1 && pAdmin[playerid] == 0)
{
SendClientMessage(playerid, 0xFF0000AA, "** O Chat estб desativado!");
return 0;
}
}
}
public OnPlayerText(playerid, text[])
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(chat[i] == 1 && pAdmin[playerid] == 0)
{
SendClientMessage(playerid, 0xFF0000AA, "** O Chat estб desativado!");
return 0;
}
}
}
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
new string2[256];
format(string2, 256,"%s(%d): %s", aname, playerid,text);
MsgLog(string2);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(strlen(text) > 60)
{
SendClientMessage(playerid, Vermelho, "** Texto grande demais!");
return 0;
}
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, Vermelho, "** Vocк estб mudo, e nгo pode falar.");
return 0;
}