Results 1 to 10 of 14

Thread: Zm Crash

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. Default

    Quote Originally Posted by mastercheff View Post
    heres the link for whats causing all this timeleft crap http://www.fpsbanana.com/scripts/2704 your welcome :P
    It's an everlasting war between the black-hat hackers and the white-hat hackers.

    The wannabe script kiddies are cannon fodder.

    And computer science advances...

  2. Default

    well i hope they make a campaign to get rid of that script :P i hate server crashes =(

  3. Default

    Okay I updated my script...

    Nothing fancy. Just a starting point. You can use whatever database you prefer. I was using dictionaries and tuples to store the userid and timediff integers.

    TODO: More state control.

    NOTE: DO NOT FIRE THIS BITCH UP, THE LOGIC IS WRONG! I need to fix that once I stop being lazy.

    import es;
    import time;

    # Set these values to your preference.
    # floodthresh requests in timeforflood seconds...

    floodthresh = 5;
    timeforflood = 10;

    cl = dict();

    def es_client_command(event_var):
    if(str(event_var['command']) == 'timeleft'):
    userid = event_var['userid'];
    ct = abs(time.time());
    if(not(cl.has_key(userid))):
    cl[userid] = (1, ct);
    return;
    tdiff = cl.get(userid)[1] - ct;
    cl[userid] = (cl.get(userid)[0] + 1, ct);
    if((cl.get(userid)[0] > floodthresh) and (tdiff <= timeforflood)):
    es.tell(userid, "Banned for flooding timeleft (%i requests in % secs)." % (cl.get(userid)[0], tdiff));
    es.server.queuecmd("banid %i %s" %(0, userid, ));
    elif((cl.get(userid)[0] < floodthresh) and (tdiff > timeforflood)):
    cl[userid] = (0, 0);
    return;
    Last edited by walterbrunswick; 07-09-2009 at 09:56 PM.

  4. Default

    Autobanning :P Theres this guy i know thats amazing with scripts, and he has like basically a hack proof server. anyone who changes there name more then 3 times on a server, is auto kicked, anyone without a name, is auto kicked. and they have some sort of auto ban system where, if anyone tries rcon, once, and gets it wrong, is perma banned, and also alot of other cool stuff :P

  5. Default

    Quote Originally Posted by Apocalypse View Post
    Autobanning :P Theres this guy i know thats amazing with scripts, and he has like basically a hack proof server. anyone who changes there name more then 3 times on a server, is auto kicked, anyone without a name, is auto kicked. and they have some sort of auto ban system where, if anyone tries rcon, once, and gets it wrong, is perma banned, and also alot of other cool stuff :P
    Apoc you should use your hacking skills for good:)

    DON'T JOIN THE DARK SIDE! RESISTANCE!

    Also, who is this guy? Link me!

  6. Default

    yea he sounds cool

  7. Default

    If you give Zero the time that this occurred, he can track whoever did it and permanently ban him.

    The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •