20.03.2016, 02:34
Код:
//BY MAUZEN stock GetPlayerRelativePos(playerid, &Float:x, &Float:y, &Float:z, Float:xoff=0.0, Float:yoff=0.0, Float:zoff=0.0) { new Float:rot; rot = 360 - rot; GetPlayerPos(playerid, x, y, z); x = floatsin(rot,degrees) * yoff + floatcos(rot,degrees) * xoff + x; y = floatcos(rot,degrees) * yoff - floatsin(rot,degrees) * xoff + y; z = zoff + z; }