how to get if one player is too close to another ?
this is what i got so far :?
Code:
public check_dist() {Code:
set_task(0.1, "check_dist", 0, "", 0, "b") |
From engine_stocks.inc:
Code:
So just include <engine_stocks> at the top of your code, and you can use that function.. And instead of looping every 0.1 seconds, you could call it in client_PreThink( id ).. Code:
I hope that helps.. |
You will also need to use i++ and a++ instead of ++i and ++a in this case.
|
What are you talking about? the ++i in my for loop?? That is a single stand-alone statement, and as such results in the same value using either post-fix or pre-fix incrementation..
|
Xeroblood is correct; it doesn't matter whether you use ++i or i++:
http://forums.alliedmods.net/showthread.php?t=10505 |
| All times are GMT -4. The time now is 14:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.