17.08.2009, 20:13
Quote:
Originally Posted by Rickk
Yes I have seen that piece of code before, but it doesn't tell me where I am aiming at.
Well, to bad if it ain't possible. |
pawn Code:
new Float:X,Float:Y,Float:Z,Float:A, string[40];
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, A);
X += (5 * floatsin(-A, degrees));
Y += (5 * floatcos(-A, degrees));
format(string, sizeof(string), "You are aiming at X:%2.f, Y:%2.f", X, Y);
SendClientMessage(playerid, string);
CreateVehicle(411, X, Y, Z, 0.0, -1, -1, 600);