ah, thnx
I tried, can you check please!
function playerghostmode()
local localplayer = getLocalPlayer(source)
for index,player in ipairs(getElementsByType("player")) do
setElementCollidableWith(player, localplayer, false)
outputChatBox("Server: Ghostmod: on", thePlayer, 0, 255, 0 )
else
setElementCollidableWith(player, localplayer, false)
outputChatBox("Server: Ghostmode: off", thePlayer, 0, 255, 0 )
end
end
addCommandHandler("ghostmode", playerghostmode)