1function onSay(player, words, param)
2 if player:getGroup():getId() < 3 then
3 return false
4 end
5
6 local t = param:splitTrimmed(" ")
7 if(not t[1]) then
8 player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")
9 return false
10 end
11
12 if(not t[2]) then
13 if Game.getStorageValue(tonumber(t[1])) == nil then
14 player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "GlobalStorage [ " ..t[1].. " ] = nil")
15 else
16 player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "GlobalStorage [ " ..t[1].. " ] = " ..Game.getStorageValue(tonumber(t[1])))
17 end
18 else
19 local value = tonumber(t[2])
20 if t[2] == "nil" then value = nil end
21 Game.setStorageValue(tonumber(t[1]), value)
22 player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "GlobalStorage " ..t[1].. " mudada para (" ..t[2].. ")")
23 end
24
25 return false
26end
27