[Release] No more Alt-F4

Hello,

Tired of alt-f4 on your role-play server that ruins scenes for you? Fix your worries with az_nomorealtf4, a script using the bansql script by default but modulable for your needs.

Condition to have for the player to be detected as banned:

  • The player is dead by a player
  • A disconnection (crash or other problems do not make ban)
  • A second player on the server (to execute the client side code since the banned player is disconnected)

This is a small script made without much pretension except to help you, use it at your own will, it was created at the base for a server but it seems that they are too stupid to understand the interest…

If you just want to integrate it to bansql you just have to copy the code in the github read me and put it on the server side so that everything works directly.

I will try to answer to people who need help on this topic,
Sincerely, Azeroth

Github page with script : GitHub - AzerothSixhten/az_nomorealtf4

Update: After requests from some users, the trigger is now server rated to avoid abuse

5 Likes

neat (20 char)

Why is the ban part client sided? This literally allows anyone that has the capability of arbitrary code execution to ban everyone on your server.

1 Like

Hello,
It’s up to you to protect your server side with the method you want! It’s really not complicated to do, maybe I’ll make it a topic one of these days. If I put it on the client side, it’s because I also display the id of the person who disconnects to the player present in the nearby area.

I hope I could answer your question,
Azeroth

Hey, good release, but for the love of god, Fix the security. I know that security is also on the users but this is such a fatal flaw that in this case, entire client side is to be removed. Put client in server, or at least put some checks in event.

Update :+1:

That’s much better!

1 Like