• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

(0.4) Give Player Mount Talkaction

Hashirama479

World of Ninja
Joined
Dec 19, 2016
Messages
536
Solutions
6
Reaction score
74
Hey guys I would like to request a script: Give player mount script as explain ( /mount Playername,ID ) thats all xD my tfs version is 0.4
 
Solution
Not so familiar with that distribution, but try this:
Lua:
function onSay(cid, words, param)

    local w = string.explode(param:lower(), ",")

    local target = getPlayerByName(w[1])
    if not target then
        return false
    end

    local id = tonumber(w[2])
    if not id then
        return false
    end

    doPlayerAddMount(target, id)
    doSendMagicEffect(getThingPos(target), 12)
    return true
end
Not so familiar with that distribution, but try this:
Lua:
function onSay(cid, words, param)

    local w = string.explode(param:lower(), ",")

    local target = getPlayerByName(w[1])
    if not target then
        return false
    end

    local id = tonumber(w[2])
    if not id then
        return false
    end

    doPlayerAddMount(target, id)
    doSendMagicEffect(getThingPos(target), 12)
    return true
end
 
Solution
Not so familiar with that distribution, but try this:
Lua:
function onSay(cid, words, param)

    local w = string.explode(param:lower(), ",")

    local target = getPlayerByName(w[1])
    if not target then
        return false
    end

    local id = tonumber(w[2])
    if not id then
        return false
    end

    doPlayerAddMount(target, id)
    doSendMagicEffect(getThingPos(target), 12)
    return true
end

Working, thanks
 
Back
Top