Jump to content

Asta's scripts for servers (autokick, teamkill, autorestart mission, speedLimit parkings, NoShootZone)


Recommended Posts

Hello all,

I did scripts for my dedicated server, I'm pretty sure they could interest other sysAdmins/missionMakers, so I decided to share them for people to not have to rebuild the wheel.

Script to control the groundSpeed on parkings/taxiways and send a player to spectator 👮‍♂️
By default (but editable):
- speed<25kt: no message
- 25kt<speed<40kt: message to the player only
- 40kt<speed: player unspawned and sent to spectator (you can uncomment the line to kick the player if you prefer )
Here is the script and the how to: https://github.com/frasta/DCS_script_groundSpeedLimit
I
t's working on dedicated server only, if you want to use it on a mission your are hosting on your "normal DCS client acting as a server", edit the code to us unit:destroy() instead of force_player_slot.

zonesExampleRec.JPG?raw=true

unknown.png

unknown.png

 

Script to kick players doing teamshooting/teamkilling 🏉
The first version of this script was quite sensitive, it was autokicking when the first bullet was touching the plane of someone else in the same team. I made it more flexible (because accidents happen): now the victim (only him) receives a message from the server to know if the player must be kicked or not, in the next 30 seconds after the shot. It helped a lot on my server to reduce "kids behaviours". Now people are more respectful, and if it's just an accident, the victim can choose to not kick him
Details and script are here: https://github.com/frasta/DCS_script_autoKick
unknown.png

unknown.png?width=1440&height=180

 

Script autorestart the mission 🔄
The script will manage to restart the mission on the server after 10H (editable) only when the last player leaves the server, very useful when you have to reboot the server because beginners make holes in your runways , or because most of players prefer to fly during day, etc....
Of course, if players stay connected longer, the mission will not reboot until the last player disconnect (after the 10 hours) 🙂
Here is the link => https://github.com/frasta/DCS_script_autorestartMission
 

Script to make players stop to shoot in forbidden zones 💥
When you are managing a public server, sometimes players just take off, come back to the same airfield and shoot vehicules/buildings/planes/players in the area, which is really annoying. This script can't send them to spectator (because of "double" (or more) weapon, script is triggered twice, spectorizing the player, but the script is executed a second (or more) time and try to spectorized a player not here anymore.
So I took decision to make an explosion at the position of where the naughty player is.🙂
you can edit the explosion size and/or message in the .lua file.

image.png
Here is the link => https://github.com/frasta/DCS_script_NoShootZone

 

DCS removeJunk script 🕳
Sometimes players crash or bomb on airbases (or eject from the ground, making explode their airplane 🤬 ), creating craters, wreckages or debris, all of them could be annoying for other players who didn't ask anything.
This script detects a crash in zones and delete the craters/wreckages/debris.🙂
Here is the link => https://github.com/frasta/DCS_script_removeJunkWhenCrash


If you have any questions, please, do it in a public place (on the forum or in a public channel on a Discord). I don't want to do personal support because your question could interests other players, and, I don't know everything, other players could help you too 🙂

- My Discord server: https://discord.gg/ZUZdMzQ (you can also find me on the official DCS Discord server or on the modding hub Discord server)
- My Github: https://github.com/frasta

Thx for you understanding.

Regards

Asta☠

 


Edited by astazou
new script added
  • Thanks 4

My DCS contributions:
- My mods/skins: here
- My server/missions scripts: there
- My Discord bot:
this place
If you want to thank me buying a coffee☕/beer🍺, feel free:
https://www.buymeacoffee.com/Astazou

Link to comment
Share on other sites

  • astazou changed the title to Asta's scripts for servers (autokick, teamkill, autorestart mission, speedLimit parkings, NoShootZone)
  • 4 weeks later...
  • 1 month later...

Update for the "no shoot zone" script, I had to move the explosion behind the center of the plane of 2 meters to avoid the pilot to be killed (it was causing a crash in rare cases on the BS3)🙂

  • Like 2

My DCS contributions:
- My mods/skins: here
- My server/missions scripts: there
- My Discord bot:
this place
If you want to thank me buying a coffee☕/beer🍺, feel free:
https://www.buymeacoffee.com/Astazou

Link to comment
Share on other sites

  • 5 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...