Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
October 15, 2019, 09:10:11 am

Author Topic: Server Enhancement Suite  (Read 3236 times)

Jrogo

  • Newbie
  • *
  • Posts: 2
    • View Profile
Server Enhancement Suite
« on: April 07, 2014, 06:16:21 pm »
Hello! I'm new here, and I wanted to share what I made.

I didn't know about this forum when I started, so big parts of my script have allready been done by other scripts. This script adds a ton of commands to the chat, very basic admin system, a GUI to control some of the features easier, and a map used to teleport the player. 

The GUI has all the commands listed on it and tabs for spawning vehicles and giving weapons. There is a tab for player, but I havn't gotten to it yet. 

When the teleport map is opened, the player will be teleported to the location they click on the map.   

This is the full list of options

Commands for Everyone 
/vehicle <num> : spawn the vehicle with specified number 
/vehicleColor <r> <g> <b> : set the color or your vehicle, values are [0-255] 
/mass <num> : set the vehicle mass to the specified value 
/repair : repair current vehicle
/explode : blow up car
/weapon <num> : give yourself the gun with index [0-26] 
/heaven : go to top of map 
/pos : get your current position 
/tpp <player name> : teleport yourself to the given player 
/tpl <x> <z> : teleport to the specified location 
/time <value> : set the time of day for the world. Can either be a number [0-24], "day", or "night" 
/weather <value> : set the weather of the world. Can either be [0-2], "sunny", "rain", or "storm". 
/clear : clear chat 
/home : go home 
/sethome : set the home location to the players current location
/whisper <player name> "<message>" : send private message to player 
/steamid : print out your steam id to your own chat

Admin commands
/makeAdmin <player name> : make the specified player an admin 
/kick <player name> : kick the player with the given name 
/kill <player name> : kill the given player 

Buttons
F7 - Open Interactive GUI 
B - Blow up car 
U - Makes car fly up into air 
Arrows - Apply Linear Velocity to car 
P - Open Teleport map
--- When map is open, click on a position to teleport there.

Screenshot

http://imgur.com/P3zUiqq

You can get it here on github: https://github.com/jhaslowh/JC2-SES
« Last Edit: April 11, 2014, 09:22:11 pm by Jrogo »

misterff1

  • Donator
  • Hero Member
  • *****
  • Posts: 582
    • View Profile
Re: Server Enhancement Suite
« Reply #1 on: May 07, 2014, 08:05:57 am »
Looks really cool mate. Could you make that teleport map a seperate script?

Jrogo

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Server Enhancement Suite
« Reply #2 on: June 23, 2014, 10:05:32 pm »
Looks really cool mate. Could you make that teleport map a seperate script?

You should be able to take the tp_map.lua from the server and client folders and just use them on their own. I tried to make sure that most of the commands had their own script files just for this purpose. Sorry for very late response.

misterff1

  • Donator
  • Hero Member
  • *****
  • Posts: 582
    • View Profile
Re: Server Enhancement Suite
« Reply #3 on: June 23, 2014, 10:38:38 pm »
Looks really cool mate. Could you make that teleport map a seperate script?

You should be able to take the tp_map.lua from the server and client folders and just use them on their own. I tried to make sure that most of the commands had their own script files just for this purpose. Sorry for very late response.

No problem, thanks for the response. I'll look into it.

Lord_Cookie_Lord

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Server Enhancement Suite
« Reply #4 on: February 21, 2015, 11:24:10 am »
Non Admin players can do Admin stuff

Darwood37

  • Donator
  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: Server Enhancement Suite
« Reply #5 on: February 21, 2015, 02:05:17 pm »
Looks really cool mate. Could you make that teleport map a seperate script?

I already have this on the server (somewhere) added it when i wrote the F2 map but it was way to easy for peeps to get around, need to let players work a little :)