Raised This Month: $12 Target: $400
 3% 

[Solved]If There is a Sky above Players Head


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheKidz
Senior Member
Join Date: May 2009
Old 11-02-2010 , 11:40   [Solved]If There is a Sky above Players Head
Reply With Quote #1

there is anyway to know about it [ Title ] ? just wondering.. :z
__________________
TheKidz is offline
Amonel
Senior Member
Join Date: May 2009
Old 11-02-2010 , 11:45   Re: If There is a Sky above Players Head
Reply With Quote #2

yes, you can teleport there to see if there is a sky or not. then you can tell us if it's solid or liquid.
Amonel is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 11-02-2010 , 11:59   Re: If There is a Sky above Players Head
Reply With Quote #3

Maybe this can help you
Code:
stock Float:is_user_outside(id) 
{
    new Float:origin[3], Float:dist

    pev(id, pev_origin, origin)
    dist = origin[2]

    while(engfunc(EngFunc_PointContents, origin) == CONTENTS_EMPTY)
        origin[2] += 5.0 
    if(engfunc(EngFunc_PointContents, origin) == CONTENTS_SKY)
        return (origin[2] - dist)

    return 0.0
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
TheKidz
Senior Member
Join Date: May 2009
Old 11-02-2010 , 13:21   Re: If There is a Sky above Players Head
Reply With Quote #4

thanks nihilanth + imaginary karma for you ;D
__________________
TheKidz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode