how to check if player is camping
Pls,give me an example code-i want to check if player is camping.He can move his weapon but he e is stayng on one place.Pls give me an example,thank you.
|
Re: how to check if player is camping
Not possible
|
Re: how to check if player is camping
Quote:
I have found only 1 thath is close for what i need but its 64 kb and the code is very long. Some one pls give me example how to check if player camp. |
Re: how to check if player is camping
There are plugins that already do this, go look at how they do it.
|
Re: how to check if player is camping
Quote:
|
Re: how to check if player is camping
It's actually extremely simple. You check if their position has changed over time. So, if their position has not change (much) after how ever many seconds you want to define, then you can assume that they are camping.
Note the emphasis on "assume" :) |
Re: how to check if player is camping
Quote:
|
Re: how to check if player is camping
im not sure but you do get uset origin and after few seconds you check if that origin is same or + a little bit
|
Re: how to check if player is camping
Quote:
Quote:
If you want someone to write it FOR YOU. Go to request section. Its not hard. use set_task get_user_origin, and compare it with a cached origin of the previous origin. If that isn't simple enough for you. go to request. |
| All times are GMT -4. The time now is 08:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.