there are a few functions that checks ghost mode, like VIP (to show online or not), pm, push player, see player, walk through, attack.. i'm pretty sure that if you search for "ghost" in your source files you gonna find it all.. so i recommend that you do this at first, and bring here more...