Uhmm, example:
function onSay(player, words, param)
if player:toggleStatsAsPercentage() then
player:setStorage(..., 1)
-- player is now using percentage notation, you can send him a message.
else
player:setStorage(..., 0)
-- player is now using normal...