1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Release Surrender

Discussion in 'DarkRP Addon & Plugin Releases' started by LordiAnders, Nov 4, 2014.

  1. Mr.Dexter

    Mr.Dexter Member

    how could i make it so only ... ranks can force people down?
     
  2. LordiAnders

    LordiAnders Active Member

    I havent added any means of checking people who shout. If you must absolutly make this specific to ranks, you'd have to disallow those ranks from being able to surrender themselves
     
  3. Mr.Dexter

    Mr.Dexter Member

    i want to make it so only Donators and higher can force people to surrender (use the shout function)
     
  4. Yellow

    Yellow New Member

    Can you add an swep for this? To replace key for surrender? ?
     
  5. LordiAnders

    LordiAnders Active Member

    Whats the point of a swep? And also...
    If people have a conflicting bind, they can change it themself
     
  6. Yellow

    Yellow New Member

    Having a swep can be more friendly for users
     
  7. LordiAnders

    LordiAnders Active Member

    How hard can it be to make a whitelist or a blacklist? You could even add only one weapon, serving as a SWEP like you are requesting
     
  8. Yellow

    Yellow New Member

    So, how can i do this? if it's even possible. English is not my main language i'm sorry
     
  9. [WD] Frany

    [WD] Frany New Member

    Anyway I can change the binds from Ctrl + Shift + E to like F10 or so?
     
  10. LordiAnders

    LordiAnders Active Member

    Unfortunatly, the surrender prompt is not configurable at the moment
     
  11. [WD] Frany

    [WD] Frany New Member

    How about if you can only surrender people when your behind them
     
  12. LordiAnders

    LordiAnders Active Member

    Im going to have to make a variable that allows you to decide whether or not forced surrenders can be allowed. You'll need basic Lua knowledge to use it though
     
  13. (I have not tested this script yet, but am very interested)
    Is there a way to set this up and restrict it to a certain job/class/group?
     
  14. LordiAnders

    LordiAnders Active Member

    The shout command unfortunatly cannot be restricted much yet.
    The only way to "prevent" it is by using the CanSurrender setting in the config file, which would also affect the surrender prompt, preventing non-forced surrender

    God damnit, i really need to create a configuration for that
     
  15. Honestly, you should just turn this into a SWEP to trigger the actions.
    That way it would be much much more easier to control who or what can create this situation during roleplay.

    I'd pay good money for this shit in a swep.
     
  16. Matryan

    Matryan Well-Known Member

    But then you can't have weapons out whilst robbing/kidnapping people...?
     
  17. Mr.Dexter

    Mr.Dexter Member

    I would love it if you could add a ulx group restriction to the shout key would mean I could use it as everybody wouldn't be ringing around shouting.
     
  18. Matryan

    Matryan Well-Known Member

    You can.
    Under
    Code (Text):
    SurrenderSettings["cansurrender"] = function(ply)
    add
    Code (Text):
    return ply:GetUserGroup() == "superadmin"
     
  19. LordiAnders

    LordiAnders Active Member

    That would restrict it, making only superadmins be able to surrender
     
  20. Heisenberg

    Heisenberg Member

    This doesn't work with most of the playermodels I use. Is there a fix for this?
     

Share This Page