#1

pawn Код:
{
    if(text[0] == '!')
    {
    new name[24], string[256];
    GetPlayerName(playerid, name, 24);
    format(string, sizeof(string), "[Team Chat]%s: %s", name, text[1]);
    printf("%s", string);

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
    SendClientMessage(i, GetPlayerColor(playerid), string);
    }
    }
    for(new d; d<sizeof(Filter); d++)
    {
    if(strfind(text,Filter[d],true) != -1 )
    {
    SendClientMessage(playerid,RED,"Bad word.Don't use those words in chat.");
    return 0;
    }
    }
    if(stringContainsIP(text))
    {
    new string2[128];
    GetPlayerName(playerid, string, 20);
    format(string, sizeof(string2), "%s has been kicked from the server! [Reason: IP advertisements]", string2);
    SendClientMessageToAll(RED, string2);
    return Kick(playerid), false;
    }
    if(Muted[playerid] == 1)
    {
        SendClientMessage(playerid,RED,"You are muted , you can't speak! Use /ask to get unmuted if you are muted for long time!");
        return 0;
       
    }
    if(PlayerInfo[playerid][pLog] == 0)
    {
       SendClientMessage(playerid,RED,"You are banned by our automatic anti-bot system if you think your ban is wrong go to avttdm.com");
       Ban(playerid);
    }
    return 0;
}
    return 1;
}
if(PlayerInfo[playerid][pLog] == 0) and if(Muted[playerid] == 1) not working.


EDIT:

Also i want to learn if player is not logged and writes a command Ban(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)