Player spawned?

Hey, how do i find out if a player is spawned or bodyless (Fretta spectating)? Tried :Alive() and :IsValid() - both outputed true when false…

**[Player.GetObserverMode

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Player.GetObserverMode)** should work.

player:GetObserverMode() != OBS_MODE_NONE doesnt work

bump?


print( player.GetByID(1):GetObserverMode() )

or (thanks function search)


if ( GAMEMODE.DeathLingerTime > 0 && timeDead > GAMEMODE.DeathLingerTime && ( pl:GetObserverMode() == OBS_MODE_FREEZECAM || pl:GetObserverMode() == OBS_MODE_DEATHCAM ) ) then
if ( ply:GetObserverMode() == OBS_MODE_NONE ) then
return ( self:GetObserverMode() > OBS_MODE_NONE );
if ( ObserveMode != LocalPlayer():GetObserverMode() ) then return true end
ObserveMode = LocalPlayer():GetObserverMode()

printed. apperantly player:GetObserverMode() != OBS_MODE_NONE returns nil, always… when i print player:GetOvserverMode() i get 6, free roam


> print(player.GetByID(1):GetObserverMode() != OBS_MODE_NONE)...
false


Working fine.

Not for me… any ideas why?
I mean, when i print it it outputs 6… it should work…