[RELEASE] kickForRestart

update Informations

updates

old version:
old version will not get updated anymore.
v2.4:

  • added a reconnect- kick function
  • added a no permissions message
  • added configs
  • added a debug command. (this will show your rights if enabled)
  • added a optimized reconnect- kick reason
  • deleted the client.lua file
    v.2.6:
  • added french to the resource
  • fixed the clientside problem, finally @RyuShin @Fleshy
  • changed the locales into ‘server.lua’ where you can change it in the very top.
    v.2.6.1:
  • changed some comments in code
  • added a no permissions message for each language
    v.2.8:
  • added /planrestart command (restarts after the given time ingame)
  • added config table to set up the restarts
  • added /stopplan to stop restart if planned with /planrestart
  • added changed restart command to /dorestart
    v.2.9:
    added Italian locales (available with “it” now)

—What do I release?—

This is a resource that kicks ALL people if you type /kickall, but before it kicks you, it asks for the player coords. With this function I include that you only can get kicked If you’re not moving. This ensures that you can Drive to the next garage, before you get kicked.
The reason I Release this, is because I couldn’t find a resource that kicks the players if you want to restart your server.

—Why do I need this instead of just close the .cmd window?—

This release is done for people that have a Roleplay Server and even a Database.
So, the Database does not safe every second what you’re doing and if I close the server the players lost about the last 5 minutes. And when I look back in console, I see that every player who gets kicked, was saved automaticly (thanks to afkkick, that I even saw that)
If you close the window it will NOT safe the last few minutes and this is what I want to fix here.

—how does it work?—

old version
it is pretty easy to say, it drops the players after starting the resource by typing;
start kick_restart
this is possible to execute from ANYWHERE!
It does not kick the players instantly but if they go AFK for 1 second (configurable)
they will get kicked.

—Release—

old version on Github:

everything should’ve been explained there.

version 2.9 on Github (recommended) :

here the 2.9 tutorial: (this is in the resource too)

README KICK_RESTART_V2.9

put the resource folder into your

resources

folder. clear the -master and v.NUMBER from the foldername.

setup resource

paste “start kick_restart” into your server.cfg.

setup permissions

paste this into your server.cfg on the very top

add_ace group.restart restart.cmds allow ##this group is able to use the /beginrestart command.

add_principal identifier.steam:HEXID group.restart ##this will give a specified person permissions to the restart group.

##You need to paste your Steam HexID into “HEXID”

everything else can get asked in the original topic.

let my know any bugs, ERRORS even improvements
right into this topic!

Future updates:

add a announce message for the new version, so people with permissions can use a command to warn the users from the restart.

take a :hamburger:

11 Likes

Awesome realease

1 Like

thank you two :slight_smile:

Hey It’s my Birthday :smile:
I Wish I had something new to release now :laughing:

Well Wish you all a good day :slight_smile:

Nice script.

1 Like

Thanks :blush:

Very useful and nice script!

1 Like

An English translation would be nice:
https://github.com/Real-RP/kick_restart/blob/master/client.lua#L25

Also, how comes you’re checking their coords? Surely just dropping them when timer is reached would be easier, no?

thanks! :wink:

there is already an english translation included! :wink:

It checks if the player is active or not. This should solve the problem that you’re in sandy shores or something and have to walk
to the next garage. Mostly the Owner writes in chat if there is a restart to come. So you can drive to the next garage, even if he already started the resource, because it only kicks you when you do not press anything.

new Update 1.2.0 ESX

  • this update adds a command
  • adds a permissions system
  • based on esx
  • has enough place for more ideas from you! :wink:

thanks for supporting me so much! :smiley:

Download link is in Release Info :slight_smile:

new Update 1.2.1 for ESX

  • fixed the tutorial on how to use this.

Let me know If you find some Bugs and post it below! :slight_smile:

Please choose here what I should release for the next time:
Wich project should be continued?

Thanks for voting :slight_smile:
Hmmmmm I closed this poll and well, it looks like you guys want both of it. So I will finish this project, and start than with the new one :slight_smile:
Take a :hamburger:

whenever I do the command /kickall
I get this error in my console

Imgur

1. What version did you have?
2. Did you have installed MySQL?
3. Have you changed Something?

I need some more Details, because I even not know what version you use.
Have a nice day! :slight_smile:
@RyuShin

Thanks @all for 1000 views! This is amazing! I guess I need to release the next big update! :wink:

Take a :hamburger:

ESX version
MySQL is installed with async
no I havn’t touched anything
This is the path i use : C:\MainServer\resources[esx][misc]\esx_kick_restart

Don’t put it in [misc] that could cause the problem. Only put it in your [esx] folder.
@RyuShin

If you still have this Error, make sure to clear your cache, than check in your database If you have the ‘users’ table and Look there If you are an admin on your server.

If it does not work after that, than I will make a little test server, with everything setted up new. Maybe than I will find that Error… :wink:

:hamburger:

I just tryed to put it in [esx] only and it still do the same error
cache has been cleared too
and my server has been up since month of june so everything is setup correctly

Ok, I will write back when I got reproduced your Error.

Thanks for supporting this! :slight_smile: