24.07.2012, 11:48
This code will spawn the object, and rotate it 180 degrees:
But how to make it rotate for like 7 secs and 360 degrees? I tried changing the degree from 180 to 360, but then it wont move at all.
pawn Код:
CMD:object(playerid, params[])
{
new Float:XYZ[3];
GetPlayerPos(playerid, XYZ[0], XYZ[1], XYZ[2]);
Coffin[playerid] = CreateObject(2896, XYZ[0], XYZ[1], XYZ[2], 0, 0, 0, 100.0);
MoveObject(Coffin[playerid], XYZ[0], XYZ[1], XYZ[2]+0.0001, 0.0001, 0.0, 0.0, 180.0);
return 1;
}