I need this:
When player enter on teleport this auto-joins a guild and give this a new outfit that doesnt can change
Thank you all.
When player enter on teleport this auto-joins a guild and give this a new outfit that doesnt can change
Code:
local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPlayer(cid)) then
return true
end
local pos, newPos = getCreaturePosition(cid), {x = EDIT, y = EDIT, z = EDIT}
doSetCreatureOutfit(cid, outfit, -1)
doTeleportThing(cid, newPos)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are now swimming.")
doSendMagicEffect(newPos, CONST_ME_WATERSPLASH)
return true
end
Thank you all.