View Single Post
TeddyDesTodes
Senior Member
Join Date: Oct 2008
Location: 10.25.15.210
Old 11-12-2008 , 12:58   Re: Winter Environment
Reply With Quote #8

hey alka
can i use some of your code please?
i mean this one:
Code:
stock Float:is_user_outside(id)
{
    new Float:vOrigin[3], Float:fDist;
    pev(id, pev_origin, vOrigin);
    
    fDist = vOrigin[2];
    
    while(engfunc(EngFunc_PointContents, vOrigin) == CONTENTS_EMPTY)
        vOrigin[2] += 5.0;
    
    if(engfunc(EngFunc_PointContents, vOrigin) == CONTENTS_SKY)
        return (vOrigin[2] - fDist);
    
    return 0.0;
}
if its not your nvm =)
__________________
TeddyDesTodes is offline
Send a message via ICQ to TeddyDesTodes