brendan2
Sensation black
- Joined
- Feb 19, 2009
- Messages
- 507
- Reaction score
- 1
Well it works i love it but i want the outfit to stay with u even if u log off.
Can anyone help me
PHP:
local outfit =
{
look = {lookType = 35, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
timeToRemove = 60
}
function onUse(cid, item, fromPos, item2, toPos)
if getCreatureOutfit(cid) ~= outfit.look then
doSetCreatureOutfit(cid, outfit.look, outfit.timeToRemove * 1000)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed into a MONSTER!")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You already look like a monster.")
end
return TRUE
end
Can anyone help me