Postado Outubro 28, 2015 10 anos Autor function onSay(cid, words, param) local player = Player(cid) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end local split = param:split(",") if split[2] == nil then player:sendCancelMessage("Insufficient parameters.") return false end local target = Player(split[1]) if target == nil then player:sendCancelMessage("A player with that name is not online.") return false end -- Trim left split[2] = split[2]:gsub("^%s*(.-)$", "%1") local ch = split[2] doPlayerAddMount(getPlayerByName(split[1]), tonumber(ch)) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The mount with id: "..tonumber(ch).." has been added to "..split[1]..".") return false end Obrigada!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.