• DarkRPVars/Disabling DarkRP Reconnect Jail
    5 replies, posted
So I am trying to disable the re-jailing if you leave the jail and re-connect. I saw something about DarkRP vars but I am not too sure on what I am reading. Anyone have any ideas on how I could do this? [url]https://github.com/FPtje/DarkRP/blob/353dc3286092cdb2efade2cc0f2145db5a6c2e69/gamemode/modules/base/sh_entityvars.lua[/url] (Search for "arrested")
DarkRPVars arent persistent as theyre bound to the player object. If you want it to stay between server restarts save info whether the player left during jail to a database, otherwise if you dont want it to be persistent through restarts you could have a table with players that let while being jailed.
[QUOTE=Klaes4Zaugen;51475896]DarkRPVars arent persistent as theyre bound to the player object. If you want it to stay between server restarts save info whether the player left during jail to a database, otherwise if you dont want it to be persistent through restarts you could have a table with players that let while being jailed.[/QUOTE] I just want to disable it. I am making my own jail system but it fucks it up if someones leaves while jailed and rejoins within 120 seconds as outlined by FpTje
Bump*
Make a txt data save? [editline]5th December 2016[/editline] Could make that once you join or leave it checks if your "jailed" and if you are and the data value is 1 it will take you to jail?
[QUOTE=KoffeSwed;51478597]Make a txt data save? [editline]5th December 2016[/editline] Could make that once you join or leave it checks if your "jailed" and if you are and the data value is 1 it will take you to jail?[/QUOTE] Maybe read what I posted? [editline]5th December 2016[/editline] Solution: [url]https://github.com/FPtje/DarkRP/blo...2e69/gamemode/modules/police/sv_init.lua#L364[/url] [CODE] hook.Remove("PlayerInitialSpawn","Arrested") [/CODE]
Sorry, you need to Log In to post a reply to this thread.