Don't really know much about it, but something like this should do the trick
PHP Code:
new Float:vec[3];
new Float:angles[3];
GetClientEyePosition(client, vec);
GetClientEyeAngles(client, angles);
TR_TraceRay(vec, angles, MASK_WATER, RayType_Infinite);
if(TR_DidHit())
{
// Is looking at water
}
else
{
// Is not looking at water
}
Yours sincerely
Impact
__________________