22.10.2010, 15:17
i don`t think thats what he wants.
if i understood correctly, you need this function: (from ******)
then CreateObject with these coordinates
if i understood correctly, you need this function: (from ******)
pawn Код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance) {
new
vid=GetPlayerVehicleID(playerid),
Float:a;
if (vid) {
GetVehiclePos(vid,x,y,a);
GetVehicleZAngle(vid, a);
}
else {
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
}
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}