16.01.2010, 00:16
You could use this
And this?
Im not sure
Quote:
GetXYInFrontOfPlayer(playerid, &Float ![]() { new Float:a; GetPlayerPos(playerid, x, y, a); GetPlayerFacingAngle(playerid, a); if (GetPlayerVehicleID(playerid)) { GetVehicleZAngle(GetPlayerVehicleID(playerid), a); } x += (distance * floatsin(-a, degrees)); y += (distance * floatcos(-a, degrees)); } |
Quote:
new Float ![]() GetPlayerPos(playerid, x, y, z); GetXYInFrontOfPlayer(playerid, x, y, 5.0); SetPlayerPos(playerid, x, y, z); |
