18.10.2014, 01:21
Player will be still be able to view others when update call for the invisible player returns 0. For others, the player will be at the last returned 1 position as AFK. The best thing you can do is to set the virtual world to another one at first (save the previous one too) and set the variable for invisible. Under OnPlayerUpdate, check if player's world has been changed and if invisible variable is set, if so set back the world and return 0. From then, keep on returning 0 to be invisible. Just a little note that whenever you're returning 0, player's data will not be sent to the server but player can receive data(see others and all). For example, shots and all. I haven't tried OnPlayerGive/TakeDamage callbacks, neither OnPlayerWeaponShot. But you should try and look if they're called when OnPlayerUpdate is returned 0. If it calls, you can do custom damage when update call returns 0.

