PERP autoban - if you have stolen game mode

Discussion in 'General Chat' started by Dan, Apr 15, 2009.

  1. Dan

    Dan Active Member

    Joined:
    Feb 21, 2008
    Messages:
    1,689
    Likes Received:
    0
    Since I know some of you enjoy PERP, and others may have dl'ed the leaked game mode, either

    A. Remove it
    or B. Rename the files it checks so it won't detect you

    Renaming the gamemode name will not stop it as it checks every game mode you own :p (Sound familiar Teddi and cpf >.>)

    simply renaming/deleting the sh_newspaper.lua file will stop the autoban.

    heres the code

    Code:
    function CheckStolenGoods ( )	
    	for k, v in pairs(file.FindDir('../gamemodes/*')) do
    		if file.Exists('../gamemodes/' .. v .. '/gamemode/sh_newspaper.lua') then			
    			if file.Exists('../gamemodes/' .. v .. '/gamemode/sv_pe_reqs.lua') then
    				for k, v in pairs(string.Explode("\n", file.Read('../gamemodes/' .. v .. '/gamemode/sv_pe_reqs.lua'))) do
    					if string.find(string.lower(v), 'mysql') then
    						RunConsoleCommand('pe_stolen_goods_log', v);
    					end
    				end
    			end
    			
    			timer.Simple(5, RunConsoleCommand, 'sg_perp');
    			
    			return false;
    		end
    	end
    end
     
  2. Pot Ducky

    Pot Ducky Hurf Durf,

    Joined:
    Jul 8, 2008
    Messages:
    1,727
    Likes Received:
    14
    haha, This is gonna rape quite a lot of people
     
  3. cpf

    cpf <s>Heckler</s>

    Joined:
    Mar 24, 2009
    Messages:
    1,307
    Likes Received:
    0
    Prolly good idea just to rename perp gamemode folder to def_not_perp or somehting
     
  4. Dan

    Dan Active Member

    Joined:
    Feb 21, 2008
    Messages:
    1,689
    Likes Received:
    0
    like I said in my post it checks all your game modes

    just like the little code you and teddi wrote to do you know what.
     
  5. cpf

    cpf <s>Heckler</s>

    Joined:
    Mar 24, 2009
    Messages:
    1,307
    Likes Received:
    0
    Did we? Idk.
    *checks gamemode*
    No :S
     
  6. Dan

    Dan Active Member

    Joined:
    Feb 21, 2008
    Messages:
    1,689
    Likes Received:
    0
    I have the code don't lie to me o_O

    I know what you and Teddi did >.< and Teddi knows that I know
     
  7. Teddi

    Teddi Well-Known Member Bear

    Joined:
    Jul 21, 2007
    Messages:
    9,636
    Likes Received:
    1,119
    No I don't know what you mean actually. If you mean the block we have on people connecting, thats via steamID, authentication by the forums and whatsnot.

    ---------- Post added at 03:18 AM ---------- Previous post was at 03:17 AM ----------

    Edit: If you mean the gamemode stealing script, firstly I was only testing it, secondly it didn't work with the above, it used the old version of GLON because Garry hadn't updated the current ver Gmod provided.