Wtf Marble Man?
function serverCmdSetValue(%client, %value)
{
if(!%client.isAdmin)
return;
if(%value/1 !$= %value)
{
messageClient(%client, "\c6Could not change the value.");
return;
}
$Variable = %value;
messageAllExcept(%client, 'MsgAdminForce', "\c5" @ %client.getPlayerName() @ "\c6 changed the value to \c5" @ %value);
messageClient(%client, 'MsgAdminForce', "\c5You \c6changed the value to \c5" @ %value);
}
Why use a switch?