$scriptPath = "Config/Script.cs";$remapDivision[$remapCount] = "Script Reload";$remapName[$remapCount] = "Reload";$remapCmd[$remapCount] = "reloadScript";$remapCount++;function reloadScript(){ exec($scriptPath);}
===Client===$remapDivision[$remapCount] = "Reloading";$remapName[$remapCount] = "Reload";$remapCmd[$remapCount] = "Reloadcommand";$remapCount++;function Reloadcommand(%val){ if(%val) { commandtoserver('Reload',""); }}===Server===function servercmdreload(%client){<stuff here>}
i'd suggest making it be a server command, like /light, that way people don't need a client sided addon to use it
MoveMap.bindCmd("Keyboard", "G", "discoverFile(\"Add-Ons/YourZipFile.zip\"); exec(\"Add-Ons/YourZipFile/server.cs\");", "");
If you want it sweet and simple you could just do this:Code: [Select]MoveMap.bindCmd("Keyboard", "G", "discoverFile(\"Add-Ons/YourZipFile.zip\"); exec(\"Add-Ons/YourZipFile/server.cs\");", "");