Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSay(cid, words, param)
- local t = string.explode(param, " ")
- local out = {
- lookType = getCreatureOutfit(cid).lookType,
- lookHead = t[1],
- lookLegs = t[1],
- lookFeet = t[1],
- lookBody = t[1],
- }
- if not t[1] then
- doPlayerSendTextMessage(cid, 20, "Insert a color in command!")
- return true
- end
- if tonumber(t[1]) > 900 then return doPlayerSendTextMessage(cid, 20, "Colors limit is 900.") end
- doSetCreatureOutfit(cid, out, -1)
- doSendAnimatedText(getCreaturePosition(cid), "COLOR!", math.random(1, 255))
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement