27.04.2013, 10:16
use this code as a stock
pawn Код:
stock GetVehiclePos(playerid, vehicleid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:x,Float:y,Float:z,Float:a,Float:X,Float:y;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
X = x + (8 * floatsin(a,degrees));
Y = y + (8 * floatcos(a,degrees));
CreateObject(00000,X,Y,z,0,0,0);
}
return 1;
}