No movement help
How can i check if a user stays with no movement??
You know what i mean?? I want if a user don't do any movement then adds invinsibility |
Re: No movement help
Check vector length of player velocity. If result is 0.00* then the player is not moving.
|
Re: No movement help
static Float:v[3]
pev( id, pev_velocity, v ) if( v[0] == 0.0 && v[1] == 0.0 && v[2] == 0.0 ) // no movement If player spawn set loop tast to check this... |
Re: No movement help
Hmm, sometimes this is false. On some maps, there is water which moves the players (e.g. like in deathrun maps)
I think pev(index, pev_buttons) will do the work |
Re: No movement help
Quote:
|
Re: No movement help
look at bad_camper plugin
|
Re: No movement help
PHP Code:
|
Re: No movement help
Quote:
|
Re: No movement help
You can also try this :
basevelocity is applied when players stands on conveyor. PHP Code:
|
Re: No movement help
connor again not working...
P.S i use this: Quote:
|
| All times are GMT -4. The time now is 10:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.