Raised This Month: $ Target: $400
 0% 

No movement help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-15-2013 , 16:36   Re: No movement help
Reply With Quote #1

look at bad_camper plugin
baneado is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-15-2013 , 16:57   Re: No movement help
Reply With Quote #2

PHP Code:
    new Float:velocity[3], Float:basevelocity[3]
    
pev(idpev_velocityvelocity)
    
pev(idpev_basevelocitybasevelocity)
    if( !
vector_length(velocity) && !vector_length(basevelocity) )
    {
    } 
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 04-16-2013 , 12:04   Re: No movement help
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
PHP Code:
    new Float:velocity[3], Float:basevelocity[3]
    
pev(idpev_velocityvelocity)
    
pev(idpev_basevelocitybasevelocity)
    if( !
vector_length(velocity) && !vector_length(basevelocity) )
    {
    } 
connor i need this too, i tried that but it's not working...
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-16-2013 , 12:35   Re: No movement help
Reply With Quote #4

You can also try this :

basevelocity is applied when players stands on conveyor.

PHP Code:
is_user_movingid )
{
    new 
Float:velocity[3];
    
pev(idpev_velocityvelocity);
    if( 
vector_length(velocity) )
    {
        return 
1;
    }

    if( 
pev(idpev_flags) & FL_BASEVELOCITY )
    {
        
pev(idpev_basevelocityvelocity);
        if( 
vector_length(velocity) )
        {
            return 
1;
        }
    }

    return 
0;


__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 10:57.


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