Need sSomeTHing

Started by HaCkeR0o1, Oct 21, 2015, 01:46 PM

Previous topic - Next topic

HaCkeR0o1

Hello all i am new on forum but i am old in vcmp.
I make a script i want some code that if player spam get auto kick.
Can anyone give please anyone can give it to me.
I am waiting Friend.
Hammad.

.

.

HaCkeR0o1

#2
Like this:-
I am not spammer.
i am not spammer.
i am not spammer.
i am not spammer.

Like repeat one message again and again and get auto kick.
Hammad.

.

I can't even begin to explain the stupidity of this but oh well.

local g_ChatHistory = array(GetMaxPlayers());

function onPlayerJoin(player)
{
    g_ChatHistory[player.ID] = [];
}

function onPlayerPart(player, reason)
{
    g_ChatHistory[player.ID] = null;
}

function onPlayerChat(player, text)
{
    local match = 0, history = g_ChatHistory[player.ID];
    foreach (msg in history)
    {
        if ((text == msg) && (++match >= 4))
        {
            player.Kick();
            return false;
        }
    }

    history.insert(0, text);
    if (history.len() > 4)
    {
        history.pop();
    }
}
.

KAKAN

He won't understand that.
oh no

.

Quote from: KAKAN on Oct 21, 2015, 03:51 PMHe won't understand that.

how's that my problem?

When you ask a question then be prepared to understand the answer. Otherwise GTFO.
.

KAKAN

I know, but he's a beginner.
oh no

Thijn

Quote from: KAKAN on Oct 21, 2015, 04:01 PMI know, but he's a beginner.
So we can't give a decent answer because he wont understand it? How's he gonna learn from it then?

KAKAN

oh no

Spidey

Quote from: Thijn on Oct 21, 2015, 05:20 PM
Quote from: KAKAN on Oct 21, 2015, 04:01 PMI know, but he's a beginner.
So we can't give a decent answer because he wont understand it? How's he gonna learn from it then?

yes you are right thijin
gta vc and san are my favourite games

KAKAN

Quote from: Spidey on Oct 22, 2015, 07:37 AM
Quote from: Thijn on Oct 21, 2015, 05:20 PM
Quote from: KAKAN on Oct 21, 2015, 04:01 PMI know, but he's a beginner.
So we can't give a decent answer because he wont understand it? How's he gonna learn from it then?

yes you are right thijin
Was he ever wrong :P?
Don't be angry. I was about to have some fun since I'm getting bored in my trip
oh no

HaCkeR0o1

Be normal all. Don't spam here on my topice
Hammad.

KAKAN

For god sake, then why don't you lock it :P?
oh no

HaCkeR0o1

Its give this error.
@S.L.C
[WEAPONS] No custom weapons to load.
[VEHICLEMODELS] No custom vehicle models to load.
announcer: Failed to announce to master.vc-mp.org; failed to lookup host address (0, The operation completed successfully. )
[MODULE]  Loaded SqVCMP 0.4 frontend by Stormeus. (v1.0)
scripts/Main.nut line = (900) column = (2) : error expression expected
[WARNING] Could not load script 'scripts/Main.nut'
[WARNING] expression expected
[ERROR]   No Squirrel gamemode was specified.
Hammad.

HaCkeR0o1

Quote from: KAKAN on Oct 22, 2015, 01:22 PMFor god sake, then why don't you lock it :P?
i can't understand KAKAN WHat you mean!!!!!
Hammad.