Closed Thread
Results 1 to 9 of 9

Thread: Code to prevent People from duping contraptions

  1. #1
    Wire Noob nundunko's Avatar
    Join Date
    Sep 2008
    Posts
    4

    Default Code to prevent People from duping contraptions

    i've met a few people that brag that noone can dupe their contractions, and that when you dupe, it will ghost, but you cant spawn it or save it.but none of them will say how. i think it's an e2 that does it but i have no idea. can anyone post the code, or if it's not an e2, post how to do it? thanks

  2. #2
    Wirererer Warlock's Avatar
    Join Date
    Jun 2010
    Location
    Scotland (near Edinburgh)
    Posts
    125

    Default Re: Code to prevent People from duping contraptions

    Dude prop protection stops people duping your stuff you dont need to use e2

    if the server doesnt have Prop Protection then find a new server that does


  3. #3
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Code to prevent People from duping contraptions

    Code:
    if (dupefinished() & owner():steamID() != "STEAM_") {
        selfDestructAll()
    }
    Or something like that.

  4. #4
    Wire Noob nundunko's Avatar
    Join Date
    Sep 2008
    Posts
    4

    Default Re: Code to prevent People from duping contraptions

    Quote Originally Posted by Warlock View Post
    Dude prop protection stops people duping your stuff you dont need to use e2

    if the server doesnt have Prop Protection then find a new server that does
    but admins are not always trustworthy, and my most precious contraptions have oft been stolen by shady ninjas.

  5. #5
    Wire Noob nundunko's Avatar
    Join Date
    Sep 2008
    Posts
    4

    Default Re: Code to prevent People from duping contraptions

    Quote Originally Posted by Drunkie View Post
    Code:
    if (dupefinished() & owner():steamID() != "STEAM_") {
        selfDestructAll()
    }
    Or something like that.
    i put that in my dupes already, (minus the dupefinished) but that still lets the person dupe and save the thing, and they can go into their harddrive and change the .txt to remove it and then go back into gmod and spawn it no problem... i see people make their contraptions unable to be saved. thanks though

  6. #6
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Code to prevent People from duping contraptions

    If it's just an E2 and the server has propcore:

    Code:
    entity():propNotSolid(1)
    But then you can't move it or touch it.

  7. #7
    Wire Amateur Mr G's Avatar
    Join Date
    Aug 2010
    Posts
    36

    Default Re: Code to prevent People from duping contraptions

    Loop all players through an array, and if someone aim's at your chip, and uses keyAttack2() then remove it.

    If the E2 plays a major part, just unweld it and throw it underground.

  8. #8
    Wire Noob pwncheif's Avatar
    Join Date
    Jan 2010
    Posts
    7

    Default Re: Code to prevent People from duping contraptions

    if(duped()) {selfDestruct()}
    if(owner():steamid()!="your steam id here") {selfDestruct()}
    if(owner():name()!="your name here") {selfDestruct()}

    all of these work.

  9. #9
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: Code to prevent People from duping contraptions

    This has been posted about 100 times now. There is no way to prevent people from duping your stuff except for prop protection (and Drunkie's technique, which is actually pretty clever....). Even if you do have that if(duped()) { selfDestruct() }, the thief can save the contraption and get the E2 off of the dupe file.

    Closed.

Closed Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots