Maxwel1
Legend Of Everything
Code:
local invisible = createConditionObject(CONDITION_GAMEMASTER, 100000, true, GAMEMASTER_INVISIBLE)
function onSay(cid, words, param, channel)
if getCreatureCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE) ~= true and doPlayerRemoveSoul(cid, 1) then
doAddCondition(cid, invisible)
else
doPlayerSendCancel(cid,"You already invisible now or you dont have enough soul to use that command.")
end
return true
end
just be invisible for monsters only not players too so any idea to modify that thing?