title says everything im kinda retarded
explain what I want to do: !addreborn playername,amount
script:
explain what I want to do: !addreborn playername,amount
script:
Lua:
local testa = TalkAction("!addreborn")
function testa.onSay(player, words, param)
if player:getAccountType() == 6 then
local split = param:splitTrimmed(",")
if param == '' then
player:sendCancelMessage('missing params')
return false
end
local targetPlayer = Player(split[1])
if not targetPlayer then
player:sendCancelMessage('player does not exists')
return false
end
local amount = split[2]
if not amount or not isNumber(amount) then
return false
end
player:addReborn(amount)
end
return false
end
testa:register()