Witam, wykombinowa?em sobie taki skrypt(talkaction):
[LUA]function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local pid = getPlayerByNameWildcard(param)
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
return TRUE
end
local pid2 = getCreatureOutfit(pid)
doSetCreatureOutfit(cid, pid2, 6000)
return true
end
[/LUA]
I mam pytanie, da si? z tego zrobi? spell? Bodaj?e w funkcji onCastSpell param nie jest zadeklarowany.
[LUA]function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local pid = getPlayerByNameWildcard(param)
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
return TRUE
end
local pid2 = getCreatureOutfit(pid)
doSetCreatureOutfit(cid, pid2, 6000)
return true
end
[/LUA]
I mam pytanie, da si? z tego zrobi? spell? Bodaj?e w funkcji onCastSpell param nie jest zadeklarowany.