Animation on Player Text
#10

my Onplayertext
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(gPlayerLogged[playerid] != 1)
    {
        SendClientMessage(playerid, COLOR_RED, "You're not logged in.");
        return 0;
    }
    if(AntiAdv(playerid, text)) return 0;
    if(PlayerInfo[playerid][pTut] == 0)
    {
        return 0;
    }

    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new string[128];
    playerLastTyped[playerid] = 0;

    if(TextSpamUnmute[playerid] != 0)
    {
        if(PlayerInfo[playerid][pAdmin] < 6)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You're muted from submitting text right now.");
            return 0;
        }
    }

    if(PlayerInfo[playerid][pAdmin] < 6)
    {
        TextSpamTimes[playerid]++;

        if(TextSpamTimes[playerid] == 5)
        {
            TextSpamTimes[playerid] = 0;
            TextSpamUnmute[playerid] = 10;
            SendClientMessage(playerid, COLOR_YELLOW, "You have been muted automatically for spamming. Please wait 10 seconds and try again.");
            SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_FLOODPROTECTION);
            return 0;
        }
    }

    if(strfind(text, "|", true) != -1)
    {
        SendClientMessage(playerid, COLOR_RED, "You can't use the '|' character in text.");
        return 0;
    }

    if(PlayerInfo[playerid][pAdmin] < 4)
    {
        if(strfind(text, ":", true) != -1)
        {
            new
                i_numcount,
                i_period,
                i_pos;

            while(text[i_pos]) {
                if('0' <= text[i_pos] <= '9') i_numcount++;
                else if(text[i_pos] == '.') i_period++;
                i_pos++;
            }
            if(i_numcount >= 8 && i_period >= 3) {
                format(string,sizeof(string),"Warning: %s may be server advertising: '%s'.", GetPlayerNameEx(playerid),text);
                ABroadCast(COLOR_RED, string, 2);
                Log("logs/hack.log", string);
                return 0;
            }
        }
    }
Reply


Messages In This Thread
Animation on Player Text - by cedizon - 29.05.2014, 06:49
Re: Animation on Player Text - by NaClchemistryK - 29.05.2014, 06:51
Re: Animation on Player Text - by BroZeus - 29.05.2014, 06:51
Re: Animation on Player Text - by Threshold - 29.05.2014, 07:03
Re: Animation on Player Text - by cedizon - 29.05.2014, 07:07
Re: Animation on Player Text - by cedizon - 29.05.2014, 07:25
Re: Animation on Player Text - by Threshold - 29.05.2014, 07:47
Re: Animation on Player Text - by Guest4390857394857 - 29.05.2014, 07:53
Re: Animation on Player Text - by Parallex - 29.05.2014, 07:54
Re: Animation on Player Text - by cedizon - 29.05.2014, 08:09

Forum Jump:


Users browsing this thread: 2 Guest(s)