1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Other Un permakill?

Discussion in 'Development' started by karl-police, Aug 4, 2016.

  1. karl-police

    karl-police Hotrod turret Clockwork Customer

    Is there a way to un permakill?
     
    • Disagree Disagree x 1
    • Good Coder Good Coder x 1
  2. Vented

    Vented Guest

    nope.
     
  3. klark

    klark α

    i dont think there is a command to do so
    thats why most servers use the banchar command so they can unban them if needed
     
    • Agree Agree x 2
  4. NightAngel

    NightAngel Fuck off Lev

    It isn't permanent if you can reverse it.
     
    • Agree Agree x 3
  5. Ralph

    Ralph black

    People find ways.. Believe me..
     
  6. Ralph

    Ralph black

    You zing whore. :)
     
  7. klark

    klark α

    i need them zingers to live dood
     
  8. karl-police

    karl-police Hotrod turret Clockwork Customer

    You can only have 10 zingers.
    Are you talking about banchar or that other thing.
     
    • Good Coder Good Coder x 1
  9. Rhenz

    Rhenz Who needs a map? Staff Member Moderator Legend

    you should be able to reverse it in your database if I'm not mI stakes

    don't ask me how I don't know how
     
  10. Doesn't PKing remove the player from the MySQL database?
    If so its irreversable.
     
  11. Rhenz

    Rhenz Who needs a map? Staff Member Moderator Legend

    no, I don't them so
     
  12. 
    player:SetCharacterData("permakilled", false);
    
    Your going to want to make sure that "Schema:permaKillPlayer" doesn't set the characters inventory table empty and cash to 0. There is also probably some other things too.
     
    • Good Coder Good Coder x 1
  13. You can do it pretty easily if you have a way to edit the database (phpMyAdmin, Adminer, etc). In the characters table, search for the character you want to un-PK. Edit that row, and look in the _Data value. In that long json string, you can replace "permakilled":true with "permakilled":false . Once you do that, the character will be revived when the owner of it logs in again.

    And make sure to use charban instead of PK in the future.
     
    • Agree Agree x 1
  14. karl-police

    karl-police Hotrod turret Clockwork Customer

    Why didn't someone made a command for it before?
     
    • Good Coder Good Coder x 1
  15. Because everyone just knows to use the superior charban system.
     

Previous Readers (Total: 0)