Åñòü îáúåêò:
Êàê ñäåëàòü òàê, ÷òîáû ïðè ïîâîðîòå îñè rZ , îáúåêò ñîçäàâàëñÿ ðÿäîì?
Ñèíèé - òîò ñàìûé îáúåêò
Êðàñíûé - êàê íóæíî.
Âîò ìîé êîä:
Ðàáîòàåò ïëîõî.
Ïîäñêàæèòå.
PHP Code:
X = -72.433197;
Yy = 1364.711425;
Zz = 1079.311035;
rXx = 0.000000;
rYy = 0.000000;
rZz= 90.000000;
Ñèíèé - òîò ñàìûé îáúåêò
Êðàñíûé - êàê íóæíî.
Âîò ìîé êîä:
PHP Code:
else if(strcmp(cmd, "/sas", true) == 0)//
{
new Float:x,Float:y;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SCM(playerid, COLOR_WHITE, " Ââåäèòå: /sas[id ñêèíà]");
new Float:distance = strval(tmp);
x = Xx;
y = Yy;
x -= (floatsin(-Rzz+180, degrees));
y += (distance * floatsin(Rzz degrees));
CreateDynamicObject(2358, x, y, Zz, Rxx, Ryy, Rzz, -1, -1, -1, 111.00, 111.00) ;
return true;
}
Ïîäñêàæèòå.