i want ppl to have no outfits except three certain outfits at the beginning of my server but nothing is working! i dont know how to make them have certain outfits when they start and i made this script
local teleportpos = {x=804,y=838,z=7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 6195 then
doTeleportThing(cid, teleportpos)
doPlayerRemOutfit(cid,128,1)
doPlayerRemOutfit(cid,131,1)
doPlayerRemOutfit(cid,132,1)
doPlayerRemOutfit(cid,133,1)
doPlayerRemOutfit(cid,143,1)
doPlayerRemOutfit(cid,144,1)
doPlayerRemOutfit(cid,145,1)
doPlayerRemOutfit(cid,146,1)
doPlayerRemOutfit(cid,151,1)
doPlayerRemOutfit(cid,152,1)
doPlayerRemOutfit(cid,153,1)
doPlayerRemOutfit(cid,154,1)
doPlayerRemOutfit(cid,251,1)
doPlayerRemOutfit(cid,268,1)
doPlayerRemOutfit(cid,273,1)
doPlayerRemOutfit(cid,278,1)
doPlayerRemOutfit(cid,289,1)
doPlayerRemOutfit(cid,325,1)
doPlayerRemOutfit(cid,335,1)
doPlayerRemOutfit(cid,328,1)
doPlayerRemOutfit(cid,367,1)
doPlayerRemOutfit(cid,430,1)
doPlayerRemOutfit(cid,432,1)
doPlayerRemOutfit(cid,472,1)
end
return TRUE
end
once you start u get summoned in a room and when u click on the door it removes all the outfits i dont want them to have.. but it doesnt it just removes addon 1 if the player has it... or addon 2 if i wrote 2 in the addon spot.. but it doesnt remove the addon itself.. i need help!
local teleportpos = {x=804,y=838,z=7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 6195 then
doTeleportThing(cid, teleportpos)
doPlayerRemOutfit(cid,128,1)
doPlayerRemOutfit(cid,131,1)
doPlayerRemOutfit(cid,132,1)
doPlayerRemOutfit(cid,133,1)
doPlayerRemOutfit(cid,143,1)
doPlayerRemOutfit(cid,144,1)
doPlayerRemOutfit(cid,145,1)
doPlayerRemOutfit(cid,146,1)
doPlayerRemOutfit(cid,151,1)
doPlayerRemOutfit(cid,152,1)
doPlayerRemOutfit(cid,153,1)
doPlayerRemOutfit(cid,154,1)
doPlayerRemOutfit(cid,251,1)
doPlayerRemOutfit(cid,268,1)
doPlayerRemOutfit(cid,273,1)
doPlayerRemOutfit(cid,278,1)
doPlayerRemOutfit(cid,289,1)
doPlayerRemOutfit(cid,325,1)
doPlayerRemOutfit(cid,335,1)
doPlayerRemOutfit(cid,328,1)
doPlayerRemOutfit(cid,367,1)
doPlayerRemOutfit(cid,430,1)
doPlayerRemOutfit(cid,432,1)
doPlayerRemOutfit(cid,472,1)
end
return TRUE
end
once you start u get summoned in a room and when u click on the door it removes all the outfits i dont want them to have.. but it doesnt it just removes addon 1 if the player has it... or addon 2 if i wrote 2 in the addon spot.. but it doesnt remove the addon itself.. i need help!