Problem with /sms and with proxdetector
#6

Quote:
Originally Posted by [TPG
Coole210 ]
get rid of messages and your old variable and yes (messages[playerid] += 1; i mean )
the
pawn Код:
messages += 1;
is for another thing.. this is the whole code.....
pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[256];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(gPlayerLogged[playerid] == 0)
    {
      SendClientMessage(playerid, GREY, "[ ! ] You are not logged in!");
      return 0;
    }
    if(messages[playerid] >= 5)
    {
        format(string, 128, "[ ! ] %s has been kicked by AC for : FLOOD REQUEST !", sendername);
        SendClientMessageToAll(0xFF6347AA, string);
        Kick(playerid);
    }
    if(realchat)
    {
        format(string, sizeof(string), "%s: %s", sendername, text);
        new playercolor = GetPlayerColor(playerid);
        ProxDetector(25.0, playerid, string,playercolor,playercolor,playercolor,playercolor,playercolor);
        messages[playerid] += 1;
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Problem with /sms and with proxdetector - by mirkoiz - 29.08.2009, 21:52
Re: Problem with /sms and with proxdetector - by aleksandra - 29.08.2009, 22:14
Re: Problem with /sms and with proxdetector - by coole210 - 29.08.2009, 22:36
Re: Problem with /sms and with proxdetector - by mirkoiz - 29.08.2009, 22:39
Re: Problem with /sms and with proxdetector - by coole210 - 29.08.2009, 22:41
Re: Problem with /sms and with proxdetector - by mirkoiz - 29.08.2009, 22:47
Re: Problem with /sms and with proxdetector - by coole210 - 29.08.2009, 22:48
Re: Problem with /sms and with proxdetector - by mirkoiz - 29.08.2009, 22:50
Re: Problem with /sms and with proxdetector - by coole210 - 29.08.2009, 22:55
Re: Problem with /sms and with proxdetector - by mirkoiz - 29.08.2009, 23:13

Forum Jump:


Users browsing this thread: 1 Guest(s)