Server scripts: Fix/improve many warnings
Merge pull request #1208 from TheUnknownOne/patch-4

Server scripts: Fix/improve many warnings