07.08.2012, 19:41
Hello Community,
can someone help me ?
I want to create a Car allways spawn behind a player but it wont works.
I dont get any Errors / Warnings,
can someone help me to get it working so the car sill spawn behind me ?
can someone help me ?
I want to create a Car allways spawn behind a player but it wont works.
pawn Код:
dcmd_car(playerid, params[])
#pragma unused params
{
new Float:X, Float:Y, Float:Z, Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
X = X + floatsin(A,-degrees);
Y = Y + floatcos(A,-degrees);
CreateVehicle(411, X, Y-2.0, Z, A, -1, -1, -1);
return 1;
}
can someone help me to get it working so the car sill spawn behind me ?