24.10.2010, 17:25
Why are you using GetPlayerVelocity? You would use GetPlayerPos to return their coordinates.
And you would need to adjust the following lines to detect the position to the left/right instead of the position in front of the player (I just don't know how to change it
)
And you would need to adjust the following lines to detect the position to the left/right instead of the position in front of the player (I just don't know how to change it
![Tongue](images/smilies/razz.gif)
pawn Код:
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));