Author Topic: Iban: threat to crash server  (Read 4532 times)

messageAll('', "WARNING: I have reason to believe Kalphiter is trying to crash the server through getMapList spam. Killing client.");
findclientbyname("kal").delete();

That is if the default message color is red as I remember.

That was soooooooo hard.


messageAll('', "WARNING: I have reason to believe Kalphiter is trying to crash the server through getMapList spam. Killing client.");
findclientbyname("kal").delete();

That is if the default message color is red as I remember.

That was soooooooo hard.
As a matter of fact, it's a script to stop cigarettes like you crashing the server. I encouraged him to make it after spamming his CityRP with it to find the server wasn't protected.

Double toast:
Code: [Select]
function serverCmdGetMapList(%client)
        {
                if($sim::time - %client.lastMapListRequestAt < 0.5)
                {
                        if($sim::time - %client.mapRequsetSpamTimeAt < 0.5)
                        {
                                if(!%client.isLocalConnection())
                                {
                                        messageAll('', "<font:impact:20>WARNING: I have reason to believe " @ %client.name @ " is trying to crash the server through getMapList spam. Killing client.");
                                        %client.delete("Please do not try and crash this server. Thank you for your cooperation.");
                                        return;
                                }
                        }
                        else
                        {
                                %client.mapRequsetSpamTimeAt = $sim::time;
                                return;
                        }
                }
                %client.lastMapListRequestAt = $sim::time;
                if(%client.isAdmin)
                {
                        return parent::serverCmdGetMapList(%client);
                }
        }

messageAll('', "WARNING: I have reason to believe Kalphiter is trying to crash the server through getMapList spam. Killing client.");
findclientbyname("kal").delete();

Code: [Select]
package AntiCrash {
function serverCmdGetMapList(%cl) {
if((!%cl.isAdmin||!%cl.isSuperAdmin||%cl.lastGetMapList+10000>getSimTime())&&!(%cl.isLocalConnection()||%cl.bl_id==getNumKeyID())) {
messageAll('',"WARNING: I have reason to believe "@%cl.name@" is trying to crash the server through getMapList spam. Killing client.");
%cl.delete();
return;
}
%cl.lastGetMapList=getSimTime();
Parent::serverCmdGetMapList(%cl);
}
};
activatePackage(AntiCrash);

Untested, but it should kick any non-admins trying to use it or any admins trying to use it more than once every ten seconds (unless they're the host).

Warning - while you were typing 2 new replies have been posted. You may wish to review your post.

Oh come on Deathwish ;)


Not only did you lose a deal of your credibility with your fandango with GetMapList, but the script's right there, I could even give a screenshot of the conversation if you wanted.

Not only did you lose a deal of your credibility with your fandango with GetMapList, but the script's right there, I could even give a screenshot of the conversation if you wanted.
Even I could've written that script in a quarter of that time.

Oh wow, this isn't my server. I thought you people knew.

I knew too.
Joux's CityRP

Besides why would someone try to blame you for crashing your own server?

I am saying it's fake.
It isn't fake lol.

Way to get called out, eh?

I thought Iban was a good man.

What the forget made you think that?

Are you allowed to crash your own server?

I want to crash mine and see what peoples reactions are.

Unless I'm not allowed to.

Are you allowed to crash your own server?

I want to crash mine and see what peoples reactions are.

Unless I'm not allowed to.
I can't host. So I get to do it all I want to mine. :cookieMonster:

lol'd
I remembered that
aglassofmilk: OMG IBAN RUN!!!!!
Stone:ZOMG
LOL!
When did I ever say "RUN"?

I said "Hi Iban"

And I went on with my life, I respect him, but he does indeed have the ego the size of a universe.

I used to consider him a friend, but he's too testy so he stays in the 'Acquaintance' section.