09.06.2010, 16:10
coloca isso no comando:
agora no fim do script
pawn Код:
new
Float:X,
Float:Y,
Float:Z;
GetPlayerPos(playerid, X, Y, Z);
GetXYInFrontOfPlayer(playerid, X, Y, 5); // '5' й a distancia.
SetPlayerPos(playerid, X, Y, Z);
pawn Код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}