Client:
All your check boxes and the circles are all boonlean (forget spelling?)
You need to name each check box according to what they are to make it easy, and it's best to do a GUIUseScope_Blah format to be sure nothing is conflicting. Then you need to create a function for the done button, something like updatesettings() in UpdateSettings you need something like %UseScope=GUIname_UseScope.getValue();
Back in your client GUI code, you'll need to add onto the updateSettings function something like commandToServer('UpdateSettings','UseScope',%UseScope); and do this for each variable, ie each setting you want. So something like:
function UpdateSettings()
{
%useScope=GUIname_useScope.getValue();
commandToServer('UpdateSettings','UseScope',%useScope);
%useAmmo=GUIname_useAmmo.getValue();
commandToServer('UpdateSettings','UseAmmo',%useAmmo);
}
Server:
Then you need to make a server command function (be sure it's a server-sided script for this) like serverCmdUpdateSettings(%client,%globalVar,%value) add your admin check blah blah so it'll look something like
function servercmdUpdateSettings(%client,%globalVar,%value)
{
if(!%client.SuperAdmin)
return;
switch$(%globalVar)
{
case UseScope:
$UseScope = %var;
case UseAmmo:
$UseAmmo = %var;
}
}
This can obviously be done way more efficiently but this is probably the easiest way.