| Blockland Forums > Modification Help |
| Two server.cs *New dificulty* |
| << < (2/5) > >> |
| Destiny/Zack0Wack0:
--- Code: ---%error = ForceRequiredAddOn("Weapon_Gun"); if(%error == $Error::AddOn_Disabled) { GunItem.uiName = ""; } if(%error == $Error::AddOn_NotFound) { error("ERROR: Weapon_Minishot - required add-on Weapon_Gun not found"); return; } %error = ForceRequiredAddOn("Weapon_Shotgun"); if(%error == $Error::AddOn_Disabled) { ShotgunItem.uiName = ""; } if(%error == $Error::AddOn_NotFound) { error("ERROR: Weapon_Minishot - required add-on Weapon_Shotgun not found"); return; } exec('./secondserver.cs'); --- End code --- Do it like that. Put your weapon in secondserver.cs. |
| slimabob:
Alright, thanks. Ill try it out to see if it works. |
| DrenDran:
I still don't understand why you need a second file though. |
| slimabob:
Because I wasn't sure if I needed two files, since they contained the same information just with slightly modified text. I thought that maybe that it would confuse the system. Also: New problem. The addon won't show up in my addons menu. I am posting a link in about an hour, seeing as I have to go somewhere. |
| Kalphiter:
--- Quote from: DrenDran on January 18, 2011, 12:47:06 PM ---I still don't understand why you need a second file though. --- End quote --- Thank you. You do NOT need two files, just jam the contents of secondserver.cs into where it executes secondserver.cs |
| Navigation |
| Message Index |
| Next page |
| Previous page |