19.05.2009, 06:03
Hello I was wondering how can i make it so that if i type /Alpha it will spawn a car infront of me (anywhere in the map)
stock GetXYInDirectionOfPosition(Float:direction, &Float:x, &Float:y, Float:dist)
{
x += (dist * floatsin(-direction, degrees));
y += (dist * floatcos(-direction, degrees));
}
Originally Posted by backwardsman97
You also need to use sine and cosine to get a position in front of the player. There are lots of functions for this though.
pawn Код:
|