Garry's Mod

Garry's Mod

Not enough ratings
[DarkRP] Enhanced Re-Arrest
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
3.738 KB
22 Jun, 2020 @ 2:26pm
23 Jun, 2020 @ 1:53pm
2 Change Notes ( view )

Subscribe to download
[DarkRP] Enhanced Re-Arrest

Description
Enhanced Re-Arrest
If a player leaves your server while he is still under arrest, the player will be automatically arrested as soon as they re-connect to the server. Regardless of whether the map has been changed in the meantime or the server has been completely restarted!


----------------------------------------------------------------


Server ConVars
ConVar
Description
Default value
ReArrest_Message
The message the player gets after being re-arrested. Only works if ReArrest_MessageType is higher than 0
"You still have an arrest to serve, so you were arrested again!"
ReArrest_MessageType
0 to disable, 1 for DarkRP-Notify only, 2 for chat only, 3 for both
1
ReArrest_TimeAfterConnect
How many seconds to wait after connect before the player is arrested again
30


----------------------------------------------------------------


Questions and Answers
DarkRP already has that, doesn't it?
Yes, but DarkRP only arrests the player again if the player reconnects immediately on the same map (and without restarting the server). But my add-on allows the player to be arrested again even if the player reconnects after a server restart, map change or after weeks.

I found a bug, what to do?
Write it in the comments! It would be good if you included the script errors (if available).

May I re-upload the add-on?
No.

May I make changes to the code and then upload it?
Of course you can make changes to the code, but even then don't upload it (use it only for your own server). In addition, I don't offer support if you change the code and bugs arise.

Does the add-on have a impact on the server (e.g. loss of performance, ..)?
The add-on should have almost no impact on your server performance. Certainly not any effects on your FPS. If you have the impression, you should probably think about which or how many "garbage" add-ons you have on your server.


Don't forget: Always wash your hands thoroughly!


----------------------------------------------------------------


Wanna give me a little gift? c:
[www.paypal.com]
2 Comments
Mekrip  [author] 26 Jun, 2020 @ 10:01am 
No, only for darkrp or darkrp-based gamemodes
☢️ W Y VΞ R Π 26 Jun, 2020 @ 9:07am 
Will this run on sandbox?