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
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
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