I tried
function serverCmdIPUTMYCOMMANDHERE(%client) {
if(%sentcommand.Iputmycommandhere == 1) {
//turn off
%sentcommand.Iputmycommandhere = 0;
messageClient(%client, '', "\c6jes00s mod had been turned \c5off\c6.");
} else {
//turn on
%sentcommand.Iputmycommandhere = 1;
messageClient(%client, '', "\c6jes00s mod has been turned \c5on\c6.");
}
}
and it did not work.