Tente isso :
Crie um arquivo .lua chamado : addpremium.lua. Cole esse script dentro :
function onSay(cid, words, param, channel)
local t = string.explode(param, ",")
if(param == '') then
pid = getCreatureTarget(cid)
if(pid == 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
else
pid = getPlayerByNameWildcard(t[1])
end
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " is not currently online.")
return true
end
local m = tonumber(t[2])
doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_BLUE, "You have received ".. m .." premium account days")
doPlayerAddPremiumDays(pid, m)
return true
end
Depois crie a TAG na talkaction.xml assim :
<talkaction log="yes" words="/addpremium" access="5" event="script" value="addpremium.lua"/>
Você usará assim :
/addpremium nomedoplayer, diasdepremium