Raised This Month: $ Target: $400
 0% 

User Stuck Check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 09-25-2012 , 22:54   User Stuck Check
Reply With Quote #1

Anyone want to help me out, I need a code that can check if a user is stuck, and if the user is stuck it does this action

Best suggested method would be with engine/fakemeta?
__________________
Ayyylmao
malec321 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-25-2012 , 23:52   Re: User Stuck Check
Reply With Quote #2

There are plugins that do this already. Look at them.
__________________
fysiks is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 09-26-2012 , 00:55   Re: User Stuck Check
Reply With Quote #3

PHP Code:
// Check if a player is stuck (credits to VEN)
stock is_player_stuck(id)
{
    static 
Float:originF[3]
    
pev(idpev_originoriginF)
    
    
engfunc(EngFunc_TraceHulloriginForiginF0, (pev(idpev_flags) & FL_DUCKING) ? HULL_HEAD HULL_HUMANid0)
    
    if (
get_tr2(0TR_StartSolid) || get_tr2(0TR_AllSolid) || !get_tr2(0TR_InOpen))
        return 
true;
    
    return 
false;

__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
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 08:21.


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