-- <command> <Player>, <Key>, <Value>
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local t = string.explode(param, ",")
if(#t == 3) then
local player, key, value = getPlayerByNameWildcard(t[1]), tonumber(t[2]), tonumber(t[3])
if(t[1] and t[2] and t[3]) then
setPlayerStorageValue(player, key, value)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "One of the params is malformed.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This command requires 3 params.")
end
return true
end