Author Topic: server.cs?  (Read 1417 times)

whats a server.cs i hear you have to have them in add on folders to make the add ons work i want to make add ons but im clueless on how to package them for V9 help please

The server.cs is exec'd when you start the server with the package selected.
The client.cs is exec'd when you start Blockland.
For using multiple .cs files, you need to use the exec("./filename"); function in server.cs or client.cs.

An example mod for using client.cs would be auto-jet, something that uses what you already have to do something unique.
An example mod for using server.cs would be something the server needs, no person can just bring weapons onto a server, they must be pre-existing. This is why server.cs is there, to make the weapons, tools, vehicles, events, and other scripts on the server for the clients to access.

Hope I explained that well.

im clueless can you explain if i need a server.cs if i wanna make a simple melee weapon with a melee script nothing special and if i need it or that can you make one for me?

if you make a sever.cs for me post it like this
Code: [Select]
server.cs here

If you want help making something, it goes here.

If you want something completely made for you without you doing any work, like this, the topic goes in suggestions and requests.

.....i just want help to make a server.cs thing :( why wont anyone ever help me

Look in the add-ons folder.
See Weapon_Sword?
Go in there, open server.cs.

server.cs is the add-ons script so without that your weapon will not work also you can just open it with notepad if you want to edit it

server.cs is the add-ons script so without that your weapon will not work also you can just open it with notepad if you want to edit it
No it's not, it's the file that's loaded for the Add-On. Some people put their script in it, some people only use it to activate their script files.