Author Topic: Making a command execute on server start?  (Read 516 times)

Alright, so I'm not quite sure if this would go here or in requests, but without further ado...
I would like to make a script so that when I enable it, it does disables jets on the server, in other words, it executes the command PlayerStandardArmor.canJet = 0; without me having to type it in the console. I am a total coding newbie, so dumbing it up is appreciated. Thank you!


So I just slap that in a txt file and save it into a .zip in my add-ons?
Rly?

Edit: as a .cs obviously
« Last Edit: December 01, 2008, 11:25:20 PM by cucumberdude »

No, you make it a server.cs, make a zip called Script_blahblahblah, then add a description file. Then slap it in your add-ons.

Oh, sorry. It's common knowledge to know to package it into a .zip, but apparently you haven't looked at other add-ons. I just meant that is all you need in the server.cs.

EDIT: Here,

Type_Name.zip
 - server.cs/client.cs
 - description.txt

« Last Edit: December 01, 2008, 11:34:37 PM by Truce »

I have actually looked at add-on packaging, just wanted to make sure I was doing it right. I'll try it, thanks.

Edit: thanks, locking, it worked great first try :D
« Last Edit: December 02, 2008, 12:08:44 AM by cucumberdude »